From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdecore/kasyncio.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'kdecore/kasyncio.h') diff --git a/kdecore/kasyncio.h b/kdecore/kasyncio.h index a96e30cd8..ad2fe1e30 100644 --- a/kdecore/kasyncio.h +++ b/kdecore/kasyncio.h @@ -25,6 +25,10 @@ #include #include "kdelibs_export.h" +#ifdef Q_MOC_RUN +#define USE_QT4 +#endif // Q_MOC_RUN + class KAsyncIOPrivate; /** * Asynchronous I/O Support @@ -35,9 +39,15 @@ class KAsyncIOPrivate; * @author Thiago Macieira * @short Asynchronous I/O support */ -class KDECORE_EXPORT KAsyncIO: public TQObject, public QIODevice +class KDECORE_EXPORT KAsyncIO: +#ifdef USE_QT4 +#else // USE_QT4 +public TQObject, +#endif // USE_QT4 +public TQIODevice { Q_OBJECT + TQ_OBJECT protected: KAsyncIO() // cannot be accessed externally { } -- cgit v1.2.1