diff options
Diffstat (limited to 'kommander/widget/invokeclass.cpp')
-rw-r--r-- | kommander/widget/invokeclass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kommander/widget/invokeclass.cpp b/kommander/widget/invokeclass.cpp index 866f629b..ec08dfff 100644 --- a/kommander/widget/invokeclass.cpp +++ b/kommander/widget/invokeclass.cpp @@ -15,7 +15,7 @@ #include <tqcolor.h> #include <tqregexp.h> -InvokeClass::InvokeClass(TQObject *parent):TQObject(parent) +InvokeClass::InvokeClass(TQObject *tqparent):TQObject(tqparent) { m_acceptedSlots = acceptedSlots(); } @@ -23,9 +23,9 @@ InvokeClass::InvokeClass(TQObject *parent):TQObject(parent) void InvokeClass::invokeSlot(TQObject *object, const TQString& slot, TQStringList args) { TQString invokeName = slot; - invokeName = invokeName.mid(invokeName.find('(')); - invokeName.prepend(TQString::number(QSIGNAL_CODE) + "invoke"); - TQString slotName = TQString::number(QSLOT_CODE) + slot; + invokeName = invokeName.mid(invokeName.tqfind('(')); + invokeName.prepend(TQString::number(TQSIGNAL_CODE) + "invoke"); + TQString slotName = TQString::number(TQSLOT_CODE) + slot; connect(this, invokeName.ascii(), object, slotName.ascii()); if (args.count() == 0) @@ -33,7 +33,7 @@ void InvokeClass::invokeSlot(TQObject *object, const TQString& slot, TQStringLis else { TQString slotArgStr = slot.section(TQRegExp("\\(|\\)"), 1); - uint argNum = slotArgStr.contains(',') + 1; + uint argNum = slotArgStr.tqcontains(',') + 1; for (uint i = args.count(); i < argNum; i++) args << ""; //poor man's invokeMetaObject |