diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2013-07-25 09:36:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-12 10:36:23 +0200 |
commit | d8ba940b949d60f43fe3b2a4e2973b7a2fdc4b2a (patch) | |
tree | f9c3390422730ebd9c7f402c8d5572f93a5e8137 /src/plugins/platforms/qnx/qqnxwindow.h | |
parent | 23964bc338b9b00e204d45a917a0bb330cb795c4 (diff) |
QNX: Prevent rendering when app is minimized
Windows will only be exposed and hence rendered when they are not
minimized. This will save useless computations and hence battery.
Change-Id: I83166cc6c3d89e878106c998a35890dd7788ed8a
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.h')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.h b/src/plugins/platforms/qnx/qqnxwindow.h index 4fabccf4cb..cd1980d994 100644 --- a/src/plugins/platforms/qnx/qqnxwindow.h +++ b/src/plugins/platforms/qnx/qqnxwindow.h @@ -102,6 +102,7 @@ public: void lower(); void requestActivateWindow(); void setWindowState(Qt::WindowState state); + void setExposed(bool exposed); void propagateSizeHints(); @@ -158,6 +159,7 @@ private: QList<QQnxWindow*> m_childWindows; QQnxWindow *m_parentWindow; bool m_visible; + bool m_exposed; QRect m_unmaximizedGeometry; Qt::WindowState m_windowState; |