diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/ident | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/ident')
-rw-r--r-- | src/modules/ident/libkviident.cpp | 12 | ||||
-rw-r--r-- | src/modules/ident/libkviident.h | 7 |
2 files changed, 10 insertions, 9 deletions
diff --git a/src/modules/ident/libkviident.cpp b/src/modules/ident/libkviident.cpp index c8f4f194..3c260678 100644 --- a/src/modules/ident/libkviident.cpp +++ b/src/modules/ident/libkviident.cpp @@ -70,7 +70,7 @@ void stopIdentService() } KviIdentSentinel::KviIdentSentinel() -: QObject(0) +: TQObject(0) { } @@ -79,10 +79,10 @@ KviIdentSentinel::~KviIdentSentinel() KviThreadManager::killPendingEvents(this); } -bool KviIdentSentinel::event(QEvent *e) +bool KviIdentSentinel::event(TQEvent *e) { if(KVI_OPTION_UINT(KviOption_uintIdentdOutputMode)==KviIdentdOutputMode::Quiet || !g_pActiveWindow) - return QObject::event(e); + return TQObject::event(e); KviWindow * pTarget = KVI_OPTION_UINT(KviOption_uintIdentdOutputMode)==KviIdentdOutputMode::ToActiveWindow ? (KviWindow *)g_pActiveWindow : (KviWindow *)g_pApp->activeConsole(); @@ -127,7 +127,7 @@ bool KviIdentSentinel::event(QEvent *e) return true; } - return QObject::event(e); + return TQObject::event(e); } @@ -385,7 +385,7 @@ ipv6_failure: kvi_socket_t t = kvi_socket_accept(m_sock,satmp.socketAddress(),&salen); if(t != KVI_INVALID_SOCKET) { - QString szHost; + TQString szHost; if(!satmp.getStringAddress(szHost))szHost = "unknown"; KviIdentRequest * r = new KviIdentRequest(t,szHost.utf8().data(),satmp.port()); m_pRequestList->append(r); @@ -405,7 +405,7 @@ ipv6_failure: kvi_socket_t t = kvi_socket_accept(m_sock6,satmp.socketAddress(),&salen); if(t != KVI_INVALID_SOCKET) { - QString szHost; + TQString szHost; if(!satmp.getStringAddress(szHost))szHost = "unknown"; KviIdentRequest * r = new KviIdentRequest(t,szHost.utf8().data(),satmp.port()); m_pRequestList->append(r); diff --git a/src/modules/ident/libkviident.h b/src/modules/ident/libkviident.h index c6d3d390..6733e928 100644 --- a/src/modules/ident/libkviident.h +++ b/src/modules/ident/libkviident.h @@ -29,7 +29,7 @@ #include "kvi_settings.h" #include "kvi_pointerlist.h" -#include <qobject.h> +#include <tqobject.h> class KviIdentRequest { @@ -52,14 +52,15 @@ typedef struct _KviIdentMessageData unsigned int uPort; } KviIdentMessageData; -class KviIdentSentinel : public QObject +class KviIdentSentinel : public TQObject { Q_OBJECT + TQ_OBJECT public: KviIdentSentinel(); ~KviIdentSentinel(); protected: - virtual bool event(QEvent * e); + virtual bool event(TQEvent * e); }; |