diff options
Diffstat (limited to 'lib/kformula/sequenceparser.cc')
-rw-r--r-- | lib/kformula/sequenceparser.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kformula/sequenceparser.cc b/lib/kformula/sequenceparser.cc index 55c8dec7..9a4ee8a2 100644 --- a/lib/kformula/sequenceparser.cc +++ b/lib/kformula/sequenceparser.cc @@ -41,7 +41,7 @@ void SequenceParser::setElementType( uint pos, ElementType* type ) } -ElementType* SequenceParser::parse( QPtrList<BasicElement>& elements ) +ElementType* SequenceParser::parse( TQPtrList<BasicElement>& elements ) { list = elements; return new SequenceType( this ); @@ -60,7 +60,7 @@ void SequenceParser::nextToken() type = element->getTokenType(); if ( type == SEPARATOR ) { if ( tokenEnd < list.count() ) { - QChar ch = getEndChar(); + TQChar ch = getEndChar(); switch ( ch ) { case ',': case '>': @@ -95,7 +95,7 @@ void SequenceParser::readNumber() type = NUMBER; readDigits(); if ( tokenEnd < list.count()-1 ) { - QChar ch = getEndChar(); + TQChar ch = getEndChar(); // Look for a dot. if ( ch == '.' ) { @@ -147,7 +147,7 @@ void SequenceParser::readNumber() void SequenceParser::readDigits() { for ( ; tokenEnd < list.count(); tokenEnd++ ) { - QChar ch = getEndChar(); + TQChar ch = getEndChar(); if ( !ch.isNumber() ) { break; } @@ -182,7 +182,7 @@ void SequenceParser::readText() } } -QChar SequenceParser::getEndChar() +TQChar SequenceParser::getEndChar() { BasicElement* element = list.at( tokenEnd ); return element->getCharacter(); @@ -195,8 +195,8 @@ ElementType* SequenceParser::getPrimitive() // << tokenStart << " " << tokenEnd << endl; switch ( type ) { case ORDINARY: { -// QString text = getText(); -// if ( table.contains( text ) || ( text == "\\quad" ) ) { +// TQString text = getText(); +// if ( table.tqcontains( text ) || ( text == "\\quad" ) ) { // return new NameType( this, text ); // } // else { @@ -228,9 +228,9 @@ ElementType* SequenceParser::getPrimitive() } -QString SequenceParser::text() +TQString SequenceParser::text() { - QString text; + TQString text; for ( uint i = tokenStart; i < tokenEnd; i++ ) { BasicElement* element = list.at( i ); text.append( element->getCharacter() ); |