summaryrefslogtreecommitdiffstats
path: root/examples/sysinfo/dialog.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-02-10 13:09:01 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-02-10 13:09:01 +1000
commit08dc326710e656ddfb9e1ef6ca38238864ad6420 (patch)
tree961a7b8c226ce23124efc329c73905f6c0c6ff8f /examples/sysinfo/dialog.cpp
parenta57b9ccfc7387ce47bc8cbd4fd7f820888ff5f7c (diff)
use inhibited
Diffstat (limited to 'examples/sysinfo/dialog.cpp')
-rw-r--r--examples/sysinfo/dialog.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/sysinfo/dialog.cpp b/examples/sysinfo/dialog.cpp
index db78957c3d..50d7364af0 100644
--- a/examples/sysinfo/dialog.cpp
+++ b/examples/sysinfo/dialog.cpp
@@ -497,17 +497,7 @@ void Dialog::setupSaver()
void Dialog::setSaverEnabled(bool b)
{
- saver->setScreenSaverDelayed(b);
-// if (b) {
-// if (!saver) {
-// saver = new QSystemScreenSaver(this);
-// }
-// if(saver->setScreenSaverInhibit()) {
-// }
-// } else {
-// delete saver;
-// saver = NULL;
-// }
+ saver->setScreenSaverInhibited(b);
}