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/testobject.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/testobject.cpp')
-rw-r--r-- | kexi/plugins/macros/tests/testobject.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kexi/plugins/macros/tests/testobject.cpp b/kexi/plugins/macros/tests/testobject.cpp index 39cadb7ac..e0db481e6 100644 --- a/kexi/plugins/macros/tests/testobject.cpp +++ b/kexi/plugins/macros/tests/testobject.cpp @@ -25,8 +25,8 @@ //#include "../lib/macro.h" //#include "../lib/metaobject.h" -//#include <qstringlist.h> -//#include <qdom.h> +//#include <tqstringlist.h> +//#include <tqdom.h> #include <kdebug.h> //#include <kxmlguiclient.h> @@ -57,7 +57,7 @@ namespace KoMacroTest { } TestObject::TestObject(KUnitTest::Tester* const tester) - : QObject() + : TQObject() , d( new Private(tester) ) // create the private d-pointer instance. { setName("TestObject"); @@ -71,18 +71,18 @@ TestObject::~TestObject() //testObject without arguments void TestObject::myslot() { - QString s = "CALLED => TestObject::myslot()"; + TQString s = "CALLED => TestObject::myslot()"; //be loud kdDebug() << s << endl; //add some extra Debuginfos to TestResults see tester.h d->tester->results()->addDebugInfo(s); } -//testobject with QString and int argument +//testobject with TQString and int argument //int is returnvalue -int TestObject::myslot(const QString&, int i) +int TestObject::myslot(const TQString&, int i) { - QString s = "CALLED => TestObject::myslot(const QString&, int)"; + TQString s = "CALLED => TestObject::myslot(const TQString&, int)"; //be loud kdDebug() << s << endl; //add some extra debuginfos to TestResults @@ -90,11 +90,11 @@ int TestObject::myslot(const QString&, int i) return i; } -//testobject with QString argument -//QString is returnvalue -QString TestObject::myslot(const QString& s) +//testobject with TQString argument +//TQString is returnvalue +TQString TestObject::myslot(const TQString& s) { - QString t = QString("CALLED => TestObject::myslot(const QString& s) s=%1").arg(s); + TQString t = TQString("CALLED => TestObject::myslot(const TQString& s) s=%1").tqarg(s); //be loud kdDebug() << t << endl; //add some extra Debuginfos to TestResults @@ -102,11 +102,11 @@ QString TestObject::myslot(const QString& s) return s; } -//testobject with QString and double argument +//testobject with TQString and double argument //double is returnvalue -double TestObject::myslot(const QString&, double d) +double TestObject::myslot(const TQString&, double d) { - QString s = "CALLED => TestObject::myslot(const QString&, double)"; + TQString s = "CALLED => TestObject::myslot(const TQString&, double)"; //be loud kdDebug() << s << endl; //add some extra Debuginfos to TestResults |