diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widget/invokeclass.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widget/invokeclass.cpp')
-rw-r--r-- | kommander/widget/invokeclass.cpp | 18 |
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()); |