summaryrefslogtreecommitdiffstats
path: root/lib/kross/main/mainmodule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/main/mainmodule.cpp')
-rw-r--r--lib/kross/main/mainmodule.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kross/main/mainmodule.cpp b/lib/kross/main/mainmodule.cpp
index 0630e81a..dde74502 100644
--- a/lib/kross/main/mainmodule.cpp
+++ b/lib/kross/main/mainmodule.cpp
@@ -36,7 +36,7 @@ namespace Kross { namespace Api {
}}
-MainModule::MainModule(const QString& name)
+MainModule::MainModule(const TQString& name)
: Module(name)
, d(new MainModulePrivate())
{
@@ -48,7 +48,7 @@ MainModule::~MainModule()
delete d;
}
-const QString MainModule::getClassName() const
+const TQString MainModule::getClassName() const
{
return "Kross::Api::MainModule";
}
@@ -69,47 +69,47 @@ void MainModule::setException(Exception::Ptr exception)
}
#if 0
-bool MainModule::hasChild(const QString& name) const
+bool MainModule::hasChild(const TQString& name) const
{
return Callable::hasChild(name);
}
#endif
-EventSignal::Ptr MainModule::addSignal(const QString& name, QObject* sender, QCString signal)
+EventSignal::Ptr MainModule::addSignal(const TQString& name, TQObject* sender, TQCString signal)
{
EventSignal* event = new EventSignal(name, sender, signal);
if(! addChild(name, event)) {
- krosswarning( QString("Failed to add signal name='%1' signature='%2'").arg(name).arg(signal) );
+ krosswarning( TQString("Failed to add signal name='%1' signature='%2'").tqarg(name).tqarg(signal.data()) );
return 0;
}
return event;
}
-EventSlot::Ptr MainModule::addSlot(const QString& name, QObject* receiver, QCString slot)
+EventSlot::Ptr MainModule::addSlot(const TQString& name, TQObject* receiver, TQCString slot)
{
EventSlot* event = new EventSlot(name, receiver, slot);
if(! addChild(name, event)) {
- krosswarning( QString("Failed to add slot name='%1' signature='%2'").arg(name).arg(slot) );
+ krosswarning( TQString("Failed to add slot name='%1' signature='%2'").tqarg(name).tqarg(slot.data()) );
return 0;
}
return event;
}
-QtObject::Ptr MainModule::addQObject(QObject* object, const QString& name)
+QtObject::Ptr MainModule::addTQObject(TQObject* object, const TQString& name)
{
QtObject* qtobject = new QtObject(object, name);
if(! addChild(name, qtobject)) {
- krosswarning( QString("Failed to add QObject name='%1'").arg(object->name()) );
+ krosswarning( TQString("Failed to add TQObject name='%1'").tqarg(object->name()) );
return 0;
}
return qtobject;
}
-EventAction::Ptr MainModule::addKAction(KAction* action, const QString& name)
+EventAction::Ptr MainModule::addKAction(KAction* action, const TQString& name)
{
EventAction* event = new EventAction(name, action);
if(! addChild(name, event)) {
- krosswarning( QString("Failed to add KAction name='%1'").arg(action->name()) );
+ krosswarning( TQString("Failed to add KAction name='%1'").tqarg(action->name()) );
return 0;
}
return event;