summaryrefslogtreecommitdiffstats
path: root/demos/embedded/fluidlauncher/slideshow.h
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-09-24 17:13:22 (GMT)
committerShane Kearns <shane.kearns@sosco.com>2009-09-25 10:52:09 (GMT)
commit351747745aa0cca64a314c033376e75171041de4 (patch)
tree617ed5fb5bbc71a383ea89ab1f1bf43703360568 /demos/embedded/fluidlauncher/slideshow.h
parent029519af1ac37cfbe839390f151567284a3deab2 (diff)
downloadQt-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/slideshow.h')
-rw-r--r--demos/embedded/fluidlauncher/slideshow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/embedded/fluidlauncher/slideshow.h b/demos/embedded/fluidlauncher/slideshow.h
index 6d51662..214652e 100644
--- a/demos/embedded/fluidlauncher/slideshow.h
+++ b/demos/embedded/fluidlauncher/slideshow.h
@@ -53,7 +53,7 @@ class SlideShow : public QWidget
Q_PROPERTY(int slideInterval READ slideInterval WRITE setSlideInterval)
public:
- SlideShow();
+ SlideShow(QWidget* parent = 0);
~SlideShow();
void addImage(QString filename);
void addImageDir(QString dirName);