summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqtimer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-14 10:14:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-14 10:14:24 +0000
commitd939881b7ed498675023602556023422dd936f95 (patch)
tree8665d35895fc4467a1edada029ee1e0374d7f005 /qtinterface/tqtimer.h
parent88fedea09251f2c8e267467b281126a105814b6e (diff)
downloadtqtinterface-d939881b7ed498675023602556023422dd936f95.tar.gz
tqtinterface-d939881b7ed498675023602556023422dd936f95.zip
Preparations for future development...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1149788 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqtimer.h')
-rw-r--r--qtinterface/tqtimer.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/qtinterface/tqtimer.h b/qtinterface/tqtimer.h
index 4df2502..7b6b72b 100644
--- a/qtinterface/tqtimer.h
+++ b/qtinterface/tqtimer.h
@@ -29,6 +29,15 @@ Boston, MA 02110-1301, USA.
// Reimplement the QTimer class
// For Qt3, no changes are needed
+#include <qtimer.h>
+
+#endif // USE_QT3
+
+#ifdef USE_QT4
+
+// Reimplement the QTimer class
+// For Qt4, some changes are needed
+
// Linker tricks required to override a class without changing its name
#define QTimer IQTimer
#include <qtimer.h>
@@ -83,7 +92,7 @@ inline bool QTimer::isActive() const
return id >= 0;
}
-#endif // USE_QT3
+#endif // USE_QT4
// #ifdef USE_QT4
//