diff options
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_p.h')
-rw-r--r-- | src/gui/kernel/qwindowsysteminterface_p.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_p.h b/src/gui/kernel/qwindowsysteminterface_p.h index d0b728ec4d..3d98ae07c9 100644 --- a/src/gui/kernel/qwindowsysteminterface_p.h +++ b/src/gui/kernel/qwindowsysteminterface_p.h @@ -88,7 +88,8 @@ public: TabletEnterProximity = UserInputEvent | 0x15, TabletLeaveProximity = UserInputEvent | 0x16, PlatformPanel = UserInputEvent | 0x17, - ContextMenu = UserInputEvent | 0x18 + ContextMenu = UserInputEvent | 0x18, + ApplicationStateChanged = 0x19 }; class WindowSystemEvent { @@ -152,6 +153,15 @@ public: Qt::WindowState newState; }; + class ApplicationStateChangedEvent : public WindowSystemEvent { + public: + ApplicationStateChangedEvent(Qt::ApplicationState newState) + : WindowSystemEvent(ApplicationStateChanged), newState(newState) + { } + + Qt::ApplicationState newState; + }; + class UserEvent : public WindowSystemEvent { public: UserEvent(QWindow * w, ulong time, EventType t) |