summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqapplication.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:14 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-12-19 14:03:14 -0600
commitf8224f3a623495e4e1dbf852554d7601a6b7c4c4 (patch)
treed5583114ba48669960c9f7d68927687ea652a0b8 /src/kernel/ntqapplication.h
parent25240579092616b09d28705ac84e13e49b744707 (diff)
parente8cbbedf46da493d2c206444a7e18e5777402905 (diff)
downloadtqt-f8224f3a623495e4e1dbf852554d7601a6b7c4c4.tar.gz
tqt-f8224f3a623495e4e1dbf852554d7601a6b7c4c4.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
Diffstat (limited to 'src/kernel/ntqapplication.h')
-rw-r--r--src/kernel/ntqapplication.h13
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