summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/tests/macrotests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/tests/macrotests.cpp')
-rw-r--r--kexi/plugins/macros/tests/macrotests.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kexi/plugins/macros/tests/macrotests.cpp b/kexi/plugins/macros/tests/macrotests.cpp
index ed222df2..45f77efd 100644
--- a/kexi/plugins/macros/tests/macrotests.cpp
+++ b/kexi/plugins/macros/tests/macrotests.cpp
@@ -34,8 +34,8 @@
#include <ostream>
-#include <qstringlist.h>
-#include <qdom.h>
+#include <tqstringlist.h>
+#include <tqdom.h>
#include <kdebug.h>
#include <kunittest/runner.h>
@@ -64,14 +64,14 @@ namespace KoMacroTest {
/**
* An @a TestObject instance used internaly to test
- * handling and communication with from QObject
+ * handling and communication with from TQObject
* inheritated instances.
*/
TestObject* testobject;
TestAction* testaction;
- QDomDocument* doomdocument;
+ TQDomDocument* doomdocument;
Private()
: xmlguiclient(0)
@@ -83,7 +83,7 @@ namespace KoMacroTest {
};
}
-typedef QValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype;
+typedef TQValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype;
MacroTests::MacroTests()
@@ -112,9 +112,9 @@ void MacroTests::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>"
@@ -134,7 +134,7 @@ void MacroTests::testMacro()
{
kdDebug()<<"===================== testMacro() ======================" << endl;
- QDomElement const domelement = d->doomdocument->documentElement();
+ TQDomElement const domelement = d->doomdocument->documentElement();
KSharedPtr<KoMacro::Macro> macro1 = KoMacro::Manager::self()->createMacro("testMacro");
KSharedPtr<KoMacro::Macro> macro2 = KoMacro::Manager::self()->createMacro("testMacro");
@@ -150,8 +150,8 @@ void MacroTests::testMacro()
KOMACROTEST_ASSERT(macro1->name(), macro2->name() );
//create list of KsharedPtr from the childs of the macro
- QValueList< KSharedPtr<KoMacro::MacroItem> >& items1 = macro1->items();
- QValueList< KSharedPtr<KoMacro::MacroItem> >& items2 = macro2->items();
+ TQValueList< KSharedPtr<KoMacro::MacroItem> >& items1 = macro1->items();
+ TQValueList< KSharedPtr<KoMacro::MacroItem> >& items2 = macro2->items();
//check that there is one
KOMACROTEST_XASSERT( items1.count(), sizetype(0) );
@@ -161,16 +161,16 @@ void MacroTests::testMacro()
KOMACROTEST_ASSERT( items1.count(), items2.count() );
//check the name
- KOMACROTEST_ASSERT( QString(macro1->name()), QString("testMacro") );
+ KOMACROTEST_ASSERT( TQString(macro1->name()), TQString("testMacro") );
{
- const QString tmp1 = QString("test");
+ const TQString tmp1 = TQString("test");
macro1->setName(tmp1);
//check the name changed
- KOMACROTEST_XASSERT( QString(macro1->name()), QString("testMacro") );
+ KOMACROTEST_XASSERT( TQString(macro1->name()), TQString("testMacro") );
//check the name
- KOMACROTEST_ASSERT( QString(macro1->name()), QString("test") );
+ KOMACROTEST_ASSERT( TQString(macro1->name()), TQString("test") );
}
//fetch the first one
@@ -178,9 +178,9 @@ void MacroTests::testMacro()
//check that it is not null
KOMACROTEST_XASSERT(sizetype(actionptr.data()), sizetype(0));
//check that it has the right name
- KOMACROTEST_ASSERT( QString(actionptr->name()), QString("testaction") );
+ KOMACROTEST_ASSERT( TQString(actionptr->name()), TQString("testaction") );
//check that it has the right text
- KOMACROTEST_ASSERT( actionptr->text(), QString("Test") );
+ KOMACROTEST_ASSERT( actionptr->text(), TQString("Test") );
//try to clear items
macro1->clearItems();