diff options
Diffstat (limited to 'lib/kformula/tokenelement.cc')
-rw-r--r-- | lib/kformula/tokenelement.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kformula/tokenelement.cc b/lib/kformula/tokenelement.cc index 6c849e9c..bb63c05f 100644 --- a/lib/kformula/tokenelement.cc +++ b/lib/kformula/tokenelement.cc @@ -19,7 +19,7 @@ #include <algorithm> -#include <qpainter.h> +#include <tqpainter.h> #include <klocale.h> @@ -38,16 +38,16 @@ KFORMULA_NAMESPACE_BEGIN -TokenElement::TokenElement( BasicElement* parent ) : TokenStyleElement( parent ), +TokenElement::TokenElement( BasicElement* tqparent ) : TokenStyleElement( tqparent ), m_textOnly( true ) { } -int TokenElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomNode n) +int TokenElement::buildChildrenFromMathMLDom(TQPtrList<BasicElement>& list, TQDomNode n) { while ( ! n.isNull() ) { if ( n.isText() ) { - QString textelements = n.toText().data(); + TQString textelements = n.toText().data(); textelements = textelements.stripWhiteSpace(); for (uint i = 0; i < textelements.length(); i++) { @@ -59,15 +59,15 @@ int TokenElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomN } } else if ( n.isEntityReference() ) { - QString entity = n.toEntityReference().nodeName(); + TQString entity = n.toEntityReference().nodeName(); const entityMap* begin = entities; const entityMap* end = entities + entityMap::size(); const entityMap* pos = std::lower_bound( begin, end, entity.ascii() ); - if ( pos == end || QString( pos->name ) != entity ) { + if ( pos == end || TQString( pos->name ) != entity ) { kdWarning() << "Invalid entity refererence: " << entity << endl; } else { - TextElement* child = new TextElement( QChar( pos->unicode ) ); + TextElement* child = new TextElement( TQChar( pos->tqunicode ) ); child->setParent(this); child->setCharFamily( charFamily() ); child->setCharStyle( charStyle() ); @@ -77,7 +77,7 @@ int TokenElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomN else if ( n.isElement() ) { m_textOnly = false; // Only mglyph element is allowed - QDomElement e = n.toElement(); + TQDomElement e = n.toElement(); if ( e.tagName().lower() != "mglyph" ) { kdWarning( DEBUGID ) << "Invalid element inside Token Element\n"; return -1; @@ -97,7 +97,7 @@ int TokenElement::buildChildrenFromMathMLDom(QPtrList<BasicElement>& list, QDomN n = n.nextSibling(); } // parse(); - kdWarning() << "Num of children " << list.count() << endl; + kdWarning() << "Num of tqchildren " << list.count() << endl; return 1; } |