← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~verzegnassi-stefano/ubuntu-docviewer-app/pdf-presentation-disable-screen-saver into lp:ubuntu-docviewer-app

 

Stefano Verzegnassi has proposed merging lp:~verzegnassi-stefano/ubuntu-docviewer-app/pdf-presentation-disable-screen-saver into lp:ubuntu-docviewer-app.

Commit message:
[PdfPresentation] Disable screen saver during a presentation

Requested reviews:
  Ubuntu Document Viewer Developers (ubuntu-docviewer-dev)

For more details, see:
https://code.launchpad.net/~verzegnassi-stefano/ubuntu-docviewer-app/pdf-presentation-disable-screen-saver/+merge/283717

[PdfPresentation] Disable screen saver during a presentation
-- 
Your team Ubuntu Document Viewer Developers is requested to review the proposed merge of lp:~verzegnassi-stefano/ubuntu-docviewer-app/pdf-presentation-disable-screen-saver into lp:ubuntu-docviewer-app.
=== modified file 'src/app/qml/pdfView/PdfPresentation.qml'
--- src/app/qml/pdfView/PdfPresentation.qml	2016-01-14 13:48:06 +0000
+++ src/app/qml/pdfView/PdfPresentation.qml	2016-01-23 13:06:33 +0000
@@ -18,6 +18,7 @@
 import Ubuntu.Components 1.3
 import DocumentViewer 1.0
 import DocumentViewer.PDF 1.0 as PDF
+import QtSystemInfo 5.0
 
 Page {
     id: pdfPage
@@ -88,6 +89,10 @@
         }
     }
 
+    ScreenSaver {
+        screenSaverEnabled: false
+    }
+
     Keys.onPressed: {
         if (event.key == Qt.Key_Escape) { pageStack.pop(); return; }
         if (event.key == Qt.Key_Home) { pdfView.positionViewAtBeginning(); return; }


Follow ups