summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@openbossa.org>2012-05-04 11:22:42 -0300
committerAlexis Menard <alexis.menard@openbossa.org>2012-05-04 12:52:53 -0300
commit1787e74b9aa2327b678a7bda38a0e4b37e0da358 (patch)
treeb494b70cf11dfc0843b5eac569ab86f1149a8d52
parentd9d3243f5c40875ddad82f9a0a38e1cb0458c07d (diff)
downloadsnowshoe-1787e74b9aa2327b678a7bda38a0e4b37e0da358.tar.gz
Implement fullscreen support in snowshoe.
Reviewed-by: Hugo Parente Lima
-rw-r--r--src/desktop/qml/PageWidget.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/desktop/qml/PageWidget.qml b/src/desktop/qml/PageWidget.qml
index 212691f..756d9b4 100644
--- a/src/desktop/qml/PageWidget.qml
+++ b/src/desktop/qml/PageWidget.qml
@@ -72,6 +72,9 @@ Item {
onTitleChanged: { root.title = title }
+
+ experimental.preferences.fullScreenEnabled: true
+
experimental.onDownloadRequested: {
downloadItem.destinationPath = BrowserWindow.decideDownloadPath(downloadItem.suggestedFilename)
downloadItem.start()
@@ -86,6 +89,14 @@ Item {
}
request.action = WebView.AcceptRequest
}
+
+ experimental.onEnterFullScreenRequested : {
+ toggleFullScreen();
+ }
+
+ experimental.onExitFullScreenRequested : {
+ toggleFullScreen();
+ }
}
function loadUrl(url)