From 3f5dc49edf41359f18e7c94c28a345a9600eb44f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 6 Dec 2012 16:48:15 -0600 Subject: Automated update from Qt3 --- src/kernel/qthread.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/kernel/qthread.cpp') 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 #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 -- cgit v1.2.1