diff options
Diffstat (limited to 'lib/kross/api/eventsignal.cpp')
-rw-r--r-- | lib/kross/api/eventsignal.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kross/api/eventsignal.cpp b/lib/kross/api/eventsignal.cpp index 455ca61f..c3e94620 100644 --- a/lib/kross/api/eventsignal.cpp +++ b/lib/kross/api/eventsignal.cpp @@ -22,15 +22,15 @@ #include "variant.h" #include "qtobject.h" -#include <qmetaobject.h> -#include <private/qucom_p.h> // for the Qt QUObject API. +#include <tqmetaobject.h> +#include <tqucom_p.h> // for the TQt TQUObject API. using namespace Kross::Api; -EventSignal::EventSignal(const QString& name, QObject* sender, QCString signal) +EventSignal::EventSignal(const TQString& name, TQObject* sender, TQCString signal) : Event<EventSignal>(name) , m_sender(sender) - , m_signal(signal) //QObject::normalizeSignalSlot(signal) + , m_signal(signal) //TQObject::normalizeSignalSlot(signal) { } @@ -38,29 +38,29 @@ EventSignal::~EventSignal() { } -const QString EventSignal::getClassName() const +const TQString EventSignal::getClassName() const { return "Kross::Api::EventSignal"; } -Object::Ptr EventSignal::call(const QString& /*name*/, KSharedPtr<List> arguments) +Object::Ptr EventSignal::call(const TQString& /*name*/, KSharedPtr<List> arguments) { #ifdef KROSS_API_EVENTSIGNAL_CALL_DEBUG - krossdebug( QString("EventSignal::call() m_signal=%1 arguments=%2").arg(m_signal).arg(arguments->toString()) ); + krossdebug( TQString("EventSignal::call() m_signal=%1 arguments=%2").tqarg(m_signal).tqarg(arguments->toString()) ); #endif - QString n = m_signal; + TQString n = m_signal; if(n.startsWith("2")) // Remove prefix of SIGNAL-macros n.remove(0,1); - int signalid = m_sender->metaObject()->findSignal(n.latin1(), false); + int signalid = m_sender->tqmetaObject()->tqfindSignal(n.latin1(), false); if(signalid < 0) - throw new Exception(QString("No such signal '%1'.").arg(n)); + throw new Exception(TQString("No such signal '%1'.").tqarg(n)); - QUObject* uo = QtObject::toQUObject(n, arguments); + TQUObject* uo = QtObject::toTQUObject(n, arguments); m_sender->qt_emit(signalid, uo); // emit the signal delete [] uo; - return new Variant( QVariant(true,0) ); + return new Variant( TQVariant(true,0) ); } |