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 /kexi/plugins/macros/tests/macroitemtests.cpp | |
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 'kexi/plugins/macros/tests/macroitemtests.cpp')
-rw-r--r-- | kexi/plugins/macros/tests/macroitemtests.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kexi/plugins/macros/tests/macroitemtests.cpp b/kexi/plugins/macros/tests/macroitemtests.cpp index 366318e1..47b93b0f 100644 --- a/kexi/plugins/macros/tests/macroitemtests.cpp +++ b/kexi/plugins/macros/tests/macroitemtests.cpp @@ -32,8 +32,8 @@ #include <ostream> -#include <qstringlist.h> -#include <qdom.h> +#include <tqstringlist.h> +#include <tqdom.h> #include <kdebug.h> #include <kunittest/runner.h> @@ -64,12 +64,12 @@ namespace KoMacroTest { /** * An @a TestObject instance used internaly to test - * handling and communication with from QObject + * handling and communication with from TQObject * inheritated instances. */ TestAction* testaction; - QDomDocument* doomdocument; + TQDomDocument* doomdocument; KSharedPtr<KoMacro::Macro> macro; @@ -83,7 +83,7 @@ namespace KoMacroTest { }; } -typedef QValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype; +typedef TQValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype; MacroitemTests::MacroitemTests() : KUnitTest::SlotTester() @@ -108,9 +108,9 @@ void MacroitemTests::setUp() d->testaction = new TestAction(); ::KoMacro::Manager::self()->publishAction(d->testaction); - d->doomdocument = new QDomDocument(); + d->doomdocument = new TQDomDocument(); - QString const xml = QString("<!DOCTYPE macros>" + TQString const xml = TQString("<!DOCTYPE macros>" "<macro xmlversion=\"1\" >" "<item action=\"testaction\" >" "</item>" @@ -136,7 +136,7 @@ void MacroitemTests::testMacro() kdDebug()<<"===================== testMacro() ======================" << endl; //fetch Items and .. - QValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); //... check that there is one KOMACROTEST_XASSERT( items.count(), sizetype(0) ); @@ -148,7 +148,7 @@ void MacroitemTests::testMacroItemString() kdDebug()<<"===================== testMacroItemString() ======================" << endl; - QValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); KSharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTSTRING); @@ -167,7 +167,7 @@ void MacroitemTests::testMacroItemString() macroitem->setVariable(TESTSTRING, "TeStString"); variableptr = macroitem->variable(TESTSTRING); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); - KOMACROTEST_ASSERT(variableptr->variant().toString(),QString("TeStString")); + KOMACROTEST_ASSERT(variableptr->variant().toString(),TQString("TeStString")); //secondway for appending an macroitem @@ -185,7 +185,7 @@ void MacroitemTests::testMacroItemInt() kdDebug()<<"===================== testMacroItemInt() ======================" << endl; - QValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); //create new macroitem for testing @@ -204,7 +204,7 @@ void MacroitemTests::testMacroItemInt() KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(sizetype(variableptr->variant().toInt()),sizetype(-1)); - macroitem->setVariable(TESTINT,QVariant(0)); + macroitem->setVariable(TESTINT,TQVariant(0)); variableptr = macroitem->variable(TESTINT); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(sizetype(variableptr->variant().toInt()),sizetype(0)); @@ -226,7 +226,7 @@ void MacroitemTests::testMacroItemBool() kdDebug()<<"===================== testMacroItemBool() ======================" << endl; - QValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); //create new macroitem for testing |