summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qeventloop.cpp')
-rw-r--r--src/kernel/qeventloop.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/qeventloop.cpp b/src/kernel/qeventloop.cpp
index 402894f2a..c72c9f2bf 100644
--- a/src/kernel/qeventloop.cpp
+++ b/src/kernel/qeventloop.cpp
@@ -41,7 +41,7 @@
#include "ntqapplication.h"
#include "ntqdatetime.h"
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
# include "ntqthread.h"
# include "private/qthreadinstance_p.h"
#endif
@@ -107,18 +107,18 @@ TQEventLoop::TQEventLoop( TQObject *parent, const char *name )
#if defined(QT_CHECK_STATE)
if ( TQApplication::currentEventLoop() )
tqFatal( "TQEventLoop: there must be only one event loop object per thread. \nIf this is supposed to be the main GUI event loop, construct it before TQApplication." );
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
if (!TQThread::currentThreadObject()) {
tqFatal( "TQEventLoop: this object can only be used in threads constructed via TQThread." );
}
-#endif // TQT_THREAD_SUPPORT
+#endif // TQT_NO_THREAD
#endif // QT_CHECK_STATE
d = new TQEventLoopPrivate;
init();
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
TQThread* thread = TQThread::currentThreadObject();
if (thread) {
if (thread->d) {
@@ -137,7 +137,7 @@ TQEventLoop::~TQEventLoop()
{
cleanup();
delete d;
-#ifdef TQT_THREAD_SUPPORT
+#ifndef TQT_NO_THREAD
TQThread* thread = TQThread::currentThreadObject();
if (thread) {
if (thread->d) {