From 040fa04882b2050e73e74459d8ca06f72e6f95c5 Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Wed, 28 Aug 2013 19:16:41 +0200 Subject: 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 Reviewed-by: Lars Knoll Reviewed-by: Richard Moe Gustavsen --- src/gui/kernel/qguiapplication_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/kernel/qguiapplication_p.h') 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 -- cgit v1.2.3