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/kross/test/testplugin.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 'lib/kross/test/testplugin.cpp')
-rw-r--r-- | lib/kross/test/testplugin.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kross/test/testplugin.cpp b/lib/kross/test/testplugin.cpp index 07fffc6a..0f0dd249 100644 --- a/lib/kross/test/testplugin.cpp +++ b/lib/kross/test/testplugin.cpp @@ -24,7 +24,7 @@ * TestPluginObject */ -TestPluginObject::TestPluginObject(const QString& name) +TestPluginObject::TestPluginObject(const TQString& name) : Kross::Api::Class<TestPluginObject>(name) { // Functions to test the basic datatypes @@ -63,7 +63,7 @@ TestPluginObject::TestPluginObject(const QString& name) this->addFunction1< Kross::Api::Variant, Kross::Api::Variant > ("stringfunc_defarg", this, &TestPluginObject::stringfunc, new Kross::Api::Variant("MyDefaultString") ); this->addFunction1< Kross::Api::Variant, Kross::Api::Variant > - ("stringlistfunc_defarg", this, &TestPluginObject::stringlistfunc, new Kross::Api::Variant(QVariant(QStringList() << "Default1" << "Default2"))); + ("stringlistfunc_defarg", this, &TestPluginObject::stringlistfunc, new Kross::Api::Variant(TQVariant(TQStringList() << "Default1" << "Default2"))); this->addFunction1< Kross::Api::Variant, Kross::Api::Variant > ("variantfunc_defarg", this, &TestPluginObject::variantfunc, new Kross::Api::Variant("MyDefaultVariantString") ); @@ -75,7 +75,7 @@ TestPluginObject::~TestPluginObject() { } -const QString TestPluginObject::getClassName() const +const TQString TestPluginObject::getClassName() const { return "TestPluginObject"; } @@ -85,20 +85,20 @@ void TestPluginObject::voiduintfunc(uint) {} int TestPluginObject::intfunc(int i) { return i; } bool TestPluginObject::boolfunc(bool b) { return b; } double TestPluginObject::doublefunc(double d) { return d; } -QCString TestPluginObject::cstringfunc(const QCString& s) { return s; } -QString TestPluginObject::stringfunc(const QString& s) { return s; } -QStringList TestPluginObject::stringlistfunc(const QStringList& sl) { return sl; } -QVariant TestPluginObject::variantfunc(const QVariant& v) { return v; } +TQCString TestPluginObject::cstringfunc(const TQCString& s) { return s; } +TQString TestPluginObject::stringfunc(const TQString& s) { return s; } +TQStringList TestPluginObject::stringlistfunc(const TQStringList& sl) { return sl; } +TQVariant TestPluginObject::variantfunc(const TQVariant& v) { return v; } TestPluginObject* TestPluginObject::objectfunc(TestPluginObject* obj) { return obj; } -QString TestPluginObject::stringstringfunc(const QString& s, const QString&) { return s; } -uint TestPluginObject::uintdoublestringfunc(uint i, double, const QString&) { return i; } -QStringList TestPluginObject::stringlistbooluintdouble(const QStringList& sl, bool, uint, double) { return sl; } +TQString TestPluginObject::stringstringfunc(const TQString& s, const TQString&) { return s; } +uint TestPluginObject::uintdoublestringfunc(uint i, double, const TQString&) { return i; } +TQStringList TestPluginObject::stringlistbooluintdouble(const TQStringList& sl, bool, uint, double) { return sl; } /************************************************************************ * TestPluginModule */ -TestPluginModule::TestPluginModule(const QString& name) +TestPluginModule::TestPluginModule(const TQString& name) : Kross::Api::Module(name) , m_testobject( new TestObject() ) @@ -110,8 +110,8 @@ TestPluginModule::TestPluginModule(const QString& name) new Kross::Api::Event<TestObject>("testpluginobject2"); addChild(testobjectclass); - // Wrap a whole QObject - addChild( new Kross::Api::QtObject( new TestObject() , "testqobject1" ) ); + // Wrap a whole TQObject + addChild( new Kross::Api::TQtObject( new TestObject() , "testqobject1" ) ); } TestPluginModule::~TestPluginModule() @@ -119,7 +119,7 @@ TestPluginModule::~TestPluginModule() delete m_testobject; } -const QString TestPluginModule::getClassName() const +const TQString TestPluginModule::getClassName() const { return "TestPluginModule"; } |