summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/eventsignal.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kross/api/eventsignal.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kross/api/eventsignal.cpp')
-rw-r--r--lib/kross/api/eventsignal.cpp24
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) );
}