diff options
Diffstat (limited to 'src/kernel/ntqapplication.h')
-rw-r--r-- | src/kernel/ntqapplication.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h index cdb7fdfc8..557658ae2 100644 --- a/src/kernel/ntqapplication.h +++ b/src/kernel/ntqapplication.h @@ -63,6 +63,7 @@ class TQWSDecoration; #ifdef QT_THREAD_SUPPORT class TQMutex; +class TQThread; #endif // QT_THREAD_SUPPORT @@ -369,7 +370,9 @@ private: #ifndef QT_NO_CURSOR static TQCursor *app_cursor; #endif +#ifndef QT_THREAD_SUPPORT static TQEventLoop* eventloop; +#endif static int app_tracking; static bool is_app_running; static bool is_app_closing; @@ -425,6 +428,7 @@ private: static void removePostedEvent( TQEvent * ); static void removePostedEvents( TQObject *receiver, int event_type ); + friend class TQObject; friend class TQWidget; friend class TQETWidget; friend class TQDialog; @@ -444,6 +448,15 @@ private: // Disabled copy constructor and operator= TQApplication( const TQApplication & ); TQApplication &operator=( const TQApplication & ); #endif + +private: + static TQEventLoop* currentEventLoop(); + +public: +#ifdef QT_THREAD_SUPPORT + static TQThread* guiThread(); +#endif + static bool isGuiThread(); }; inline int TQApplication::argc() const |