diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kformula/oasiscreationstrategy.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/oasiscreationstrategy.cc')
-rw-r--r-- | lib/kformula/oasiscreationstrategy.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kformula/oasiscreationstrategy.cc b/lib/kformula/oasiscreationstrategy.cc index 637bd695..9f7949cb 100644 --- a/lib/kformula/oasiscreationstrategy.cc +++ b/lib/kformula/oasiscreationstrategy.cc @@ -17,7 +17,7 @@ * Boston, MA 02110-1301, USA. */ -#include <qdom.h> +#include <tqdom.h> #include "bracketelement.h" #include "elementtype.h" @@ -45,7 +45,7 @@ KFORMULA_NAMESPACE_BEGIN -BasicElement* OasisCreationStrategy::createElement( QString type, const QDomElement& element ) +BasicElement* OasisCreationStrategy::createElement( TQString type, const TQDomElement& element ) { // TODO @@ -95,7 +95,7 @@ BasicElement* OasisCreationStrategy::createElement( QString type, const QDomElem } -TextElement* OasisCreationStrategy::createTextElement( const QChar& ch, bool symbol ) +TextElement* OasisCreationStrategy::createTextElement( const TQChar& ch, bool symbol ) { return new TextElement( ch, symbol ); } @@ -160,13 +160,13 @@ IndexElement* OasisCreationStrategy::createIndexElement() return new IndexElement; } -BasicElement* OasisCreationStrategy::createOperatorElement( const QDomElement& element ) +BasicElement* OasisCreationStrategy::createOperatorElement( const TQDomElement& element ) { - QDomNode n = element.firstChild(); + TQDomNode n = element.firstChild(); if ( n.isNull() ) return 0; if ( n.isEntityReference() ) { - QString name = n.nodeName(); + TQString name = n.nodeName(); if ( name == "CloseCurlyDoubleQuote" || name == "CloseCurlyQuote" || name == "LeftAngleBracket" @@ -184,8 +184,8 @@ BasicElement* OasisCreationStrategy::createOperatorElement( const QDomElement& e return new OperatorElement(); } if ( n.isText() ) { - QString text = n.toText().data(); - if ( text.length() == 1 && QString("()[]{}").contains(text[0]) ) { + TQString text = n.toText().data(); + if ( text.length() == 1 && TQString("()[]{}").tqcontains(text[0]) ) { return new BracketElement(); } } |