diff options
author | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-04-29 13:17:31 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-08-27 21:58:39 +0000 |
commit | ee767c838a0e0a91394a24b21d44d862d3b60416 (patch) | |
tree | e46613ec123541418fdc1d1bb244d86c350e4e38 /src/gui/kernel/qwindowsysteminterface_p.h | |
parent | ac9643c85ff829583c8be958b5eea4d543070882 (diff) |
Implement threaded synchronous WS events
Make handleWindowSystemEvent() support being called
from secondary threads in synchronousWindowSystemEvent
mode.
This is implemented by posting the event to the Gui
event queue (which will wake the Qt Gui thread), and
then calling flushWindowSystemEvents which will block
the calling thread until the event has been processed.
Change-Id: I7e8e68c1e0290c17105563268e316b0f8205b3ce
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_p.h b/src/gui/kernel/qwindowsysteminterface_p.h index 430800f137..e48d1e965b 100644 --- a/src/gui/kernel/qwindowsysteminterface_p.h +++ b/src/gui/kernel/qwindowsysteminterface_p.h @@ -482,6 +482,7 @@ public: static WindowSystemEvent *getNonUserInputWindowSystemEvent(); static WindowSystemEvent *peekWindowSystemEvent(EventType t); static void removeWindowSystemEvent(WindowSystemEvent *event); + static void postWindowSystemEvent(WindowSystemEvent *ev); static bool handleWindowSystemEvent(WindowSystemEvent *ev); static QElapsedTimer eventTime; |