From f6f9c296c3f9d39a8c3d0ee64a542a47f450be28 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 00:37:32 +0000 Subject: TQt4 port kpilot This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1238903 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/kpilotdevicelinkPrivate.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lib/kpilotdevicelinkPrivate.h') diff --git a/lib/kpilotdevicelinkPrivate.h b/lib/kpilotdevicelinkPrivate.h index 518f019..b0967ba 100644 --- a/lib/kpilotdevicelinkPrivate.h +++ b/lib/kpilotdevicelinkPrivate.h @@ -109,8 +109,8 @@ private: class Messages { public: - Messages(KPilotDeviceLink *parent) : - fDeviceLink(parent) + Messages(KPilotDeviceLink *tqparent) : + fDeviceLink(tqparent) { reset(); } @@ -170,10 +170,10 @@ protected: KPilotDeviceLink *fDeviceLink; }; -class DeviceCommEvent : public QEvent +class DeviceCommEvent : public TQEvent { public: - DeviceCommEvent(DeviceCustomEvents type, TQString msg = TQString::null, + DeviceCommEvent(DeviceCustomEvents type, TQString msg = TQString(), int progress = 0) : TQEvent( (TQEvent::Type)type ), fMessage(msg), fProgress(progress), fPilotSocket(-1) @@ -207,15 +207,16 @@ private: }; /** Class that handles all device communications. We do this - in a different thread so that we do not block the main Qt + in a different thread so that we do not block the main TQt Event thread (similar to Swing's AWT event dispatch thread). */ -class DeviceCommThread : public TQObject, public QThread +class DeviceCommThread : public TQObject, public TQThread { friend class KPilotDeviceLink; Q_OBJECT + TQ_OBJECT public: DeviceCommThread(KPilotDeviceLink *d); @@ -239,7 +240,7 @@ protected: * Does the low-level opening of the device and handles the * pilot-link library initialisation. */ - bool open(const TQString &device = TQString::null); + bool open(const TQString &device = TQString()); protected slots: /** -- cgit v1.2.1