summaryrefslogtreecommitdiffstats
path: root/src/qml/BrowserWindow.qml
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-11-05 21:19:23 +0100
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-11-17 15:42:00 +0000
commit2e18b419a7084b1e39bf8749855768a1002e34de (patch)
treeb88acc8a61dfd04c85c18856a724f8c566274fad /src/qml/BrowserWindow.qml
parent8a1e95239518d3c4344122f66ad66a49d455e4dc (diff)
Add fullscreen video support
Change-Id: I5214a1cad6f460d2d92c5c3ea04ee948305b1312 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/qml/BrowserWindow.qml')
-rw-r--r--src/qml/BrowserWindow.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/qml/BrowserWindow.qml b/src/qml/BrowserWindow.qml
index c95ee53..8b112cd 100644
--- a/src/qml/BrowserWindow.qml
+++ b/src/qml/BrowserWindow.qml
@@ -167,6 +167,22 @@ Item {
}
}
+ UIToolBar {
+ id: fullScreenBar
+ z: 6
+ title: qsTr("Leave Full Screen Mode")
+ visible: opacity != 0.0
+ opacity: tabView.viewState == "fullscreen" ? 1.0 : 0.0
+ anchors {
+ left: parent.left
+ right: parent.right
+ top: navigation.top
+ }
+ onDoneClicked: {
+ navigation.webView.triggerWebAction(WebEngineView.ExitFullScreen);
+ }
+ }
+
NavigationBar {
id: navigation