diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-08-28 19:16:41 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 16:26:21 +0200 |
commit | 040fa04882b2050e73e74459d8ca06f72e6f95c5 (patch) | |
tree | 6d5724bb0735178dbed8cb096cb0f063bdad87c1 /src/gui/kernel/qguiapplication_p.h | |
parent | e040a2733184a00ca4951269e0a3e3733ffaa377 (diff) |
Added applicationState() to QGuiApplication.
We only had the QApplicationStateChangeEvent to know about the
application state. Added a function and a signal to offer a more
convenient way to query the current state.
Change-Id: I926aac0b3b53bd285df5825aff5b4c37ae863d03
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication_p.h')
-rw-r--r-- | src/gui/kernel/qguiapplication_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication_p.h b/src/gui/kernel/qguiapplication_p.h index 11f68ba2ff..79e826f330 100644 --- a/src/gui/kernel/qguiapplication_p.h +++ b/src/gui/kernel/qguiapplication_p.h @@ -130,8 +130,6 @@ public: static void processWindowStateChangedEvent(QWindowSystemInterfacePrivate::WindowStateChangedEvent *e); static void processWindowScreenChangedEvent(QWindowSystemInterfacePrivate::WindowScreenChangedEvent *e); - static void processApplicationStateChangedEvent(QWindowSystemInterfacePrivate::ApplicationStateChangedEvent *e); - static void processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *e); static void updateFilteredScreenOrientation(QScreen *screen); @@ -277,6 +275,8 @@ public: static QRect applyWindowGeometrySpecification(const QRect &windowGeometry, const QWindow *window); + static void setApplicationState(Qt::ApplicationState state); + protected: virtual void notifyThemeChanged(); #ifndef QT_NO_DRAGANDDROP |