summaryrefslogtreecommitdiffstats
path: root/src/kernel/qthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qthread.cpp')
-rw-r--r--src/kernel/qthread.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp
index a1719313d..fe03ce066 100644
--- a/src/kernel/qthread.cpp
+++ b/src/kernel/qthread.cpp
@@ -41,6 +41,7 @@
#include "qplatformdefs.h"
#include "ntqthread.h"
+#include "ntqeventloop.h"
#include <private/qthreadinstance_p.h>
#ifndef QT_H
@@ -238,4 +239,20 @@ void TQThread::postEvent( TQObject * receiver, TQEvent * event )
}
#endif
+TQEventLoopThread::TQEventLoopThread() : TQThread()
+{
+ //
+}
+
+TQEventLoopThread::~TQEventLoopThread()
+{
+ //
+}
+
+void TQEventLoopThread::run()
+{
+ TQEventLoop* eventLoop = TQApplication::eventLoop();
+ if (eventLoop) eventLoop->exec();
+}
+
#endif // QT_THREAD_SUPPORT