summaryrefslogtreecommitdiffstats
path: root/kommander/widget/invokeclass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widget/invokeclass.cpp')
-rw-r--r--kommander/widget/invokeclass.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kommander/widget/invokeclass.cpp b/kommander/widget/invokeclass.cpp
index b5de4678..866f629b 100644
--- a/kommander/widget/invokeclass.cpp
+++ b/kommander/widget/invokeclass.cpp
@@ -12,27 +12,27 @@
#include "invokeclass.h"
-#include <qcolor.h>
-#include <qregexp.h>
+#include <tqcolor.h>
+#include <tqregexp.h>
-InvokeClass::InvokeClass(QObject *parent):QObject(parent)
+InvokeClass::InvokeClass(TQObject *parent):TQObject(parent)
{
m_acceptedSlots = acceptedSlots();
}
-void InvokeClass::invokeSlot(QObject *object, const QString& slot, QStringList args)
+void InvokeClass::invokeSlot(TQObject *object, const TQString& slot, TQStringList args)
{
- QString invokeName = slot;
+ TQString invokeName = slot;
invokeName = invokeName.mid(invokeName.find('('));
- invokeName.prepend(QString::number(QSIGNAL_CODE) + "invoke");
- QString slotName = QString::number(QSLOT_CODE) + slot;
+ invokeName.prepend(TQString::number(QSIGNAL_CODE) + "invoke");
+ TQString slotName = TQString::number(QSLOT_CODE) + slot;
connect(this, invokeName.ascii(), object, slotName.ascii());
if (args.count() == 0)
emit invoke();
else
{
- QString slotArgStr = slot.section(QRegExp("\\(|\\)"), 1);
+ TQString slotArgStr = slot.section(TQRegExp("\\(|\\)"), 1);
uint argNum = slotArgStr.contains(',') + 1;
for (uint i = args.count(); i < argNum; i++)
args << "";
@@ -52,7 +52,7 @@ void InvokeClass::invokeSlot(QObject *object, const QString& slot, QStringList a
else if (slotArgStr == m_acceptedSlots[6])
emit invoke(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt());
else if (slotArgStr == m_acceptedSlots[7])
- emit invoke(QColor(args[0]));
+ emit invoke(TQColor(args[0]));
}
disconnect(this, invokeName.ascii(), object, slotName.ascii());