diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-09-24 17:13:22 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-09-25 10:52:09 (GMT) |
commit | 351747745aa0cca64a314c033376e75171041de4 (patch) | |
tree | 617ed5fb5bbc71a383ea89ab1f1bf43703360568 /demos/embedded/fluidlauncher/fluidlauncher.h | |
parent | 029519af1ac37cfbe839390f151567284a3deab2 (diff) | |
download | Qt-351747745aa0cca64a314c033376e75171041de4.zip Qt-351747745aa0cca64a314c033376e75171041de4.tar.gz Qt-351747745aa0cca64a314c033376e75171041de4.tar.bz2 |
Stop fluidlauncher timers when in background to save battery
Changed fluidlauncher to use a stacked widget instead of two top level
windows.
Used the ActivationChange event to get notification from the OS window
system when fluidlauncher is active.
Slideshow related timers are stopped when the window is deactivated and
restarted when activated.
Task-number: QT-886
Reviewed-by: Alessandro Portale
Diffstat (limited to 'demos/embedded/fluidlauncher/fluidlauncher.h')
-rw-r--r-- | demos/embedded/fluidlauncher/fluidlauncher.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/embedded/fluidlauncher/fluidlauncher.h b/demos/embedded/fluidlauncher/fluidlauncher.h index 2c40526..ff742e2 100644 --- a/demos/embedded/fluidlauncher/fluidlauncher.h +++ b/demos/embedded/fluidlauncher/fluidlauncher.h @@ -50,7 +50,7 @@ #include "slideshow.h" #include "demoapplication.h" -class FluidLauncher : public QObject +class FluidLauncher : public QStackedWidget { Q_OBJECT @@ -65,6 +65,9 @@ public slots: void inputTimedout(); void demoFinished(); +protected: + void changeEvent(QEvent *event); + private: PictureFlow* pictureFlowWidget; SlideShow* slideShowWidget; |