summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_p.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2014-06-26 15:15:56 +0200
committerJonathan Liu <net147@gmail.com>2014-10-22 05:53:15 +0200
commitdafd1ffa2c6fb8823b8e582d7cc75a050e14a80e (patch)
treeedb180daf78417006b420842259a0b50d9d8430b /src/gui/kernel/qwindowsysteminterface_p.h
parent42bdbed7cedc5d77e999143c44c3e095b7cd4ebd (diff)
QPA: Flush window system events with flags.
Add a QEventLoop::ProcessEventsFlags argument to flushWindowSystemEvents(). This gives the platform plugins more control over which events to flush. Task-number: QTBUG-39842 Change-Id: Id9c01948b22e297b22503d38ec4e726f9f880fd5 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> Reviewed-by: Jonathan Liu <net147@gmail.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_p.h')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_p.h b/src/gui/kernel/qwindowsysteminterface_p.h
index f48c75a027..c3f41da835 100644
--- a/src/gui/kernel/qwindowsysteminterface_p.h
+++ b/src/gui/kernel/qwindowsysteminterface_p.h
@@ -178,9 +178,11 @@ public:
class FlushEventsEvent : public WindowSystemEvent {
public:
- FlushEventsEvent()
+ FlushEventsEvent(QEventLoop::ProcessEventsFlags f = QEventLoop::AllEvents)
: WindowSystemEvent(FlushEvents)
+ , flags(f)
{ }
+ QEventLoop::ProcessEventsFlags flags;
};
class UserEvent : public WindowSystemEvent {