summaryrefslogtreecommitdiffstats
path: root/lib/kross/test/testplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/test/testplugin.cpp')
-rw-r--r--lib/kross/test/testplugin.cpp28
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";
}