[UI] Added more ways to toggle fullscreen.
This commit is contained in:
parent
d66cedb2b8
commit
074ced6844
|
@ -139,7 +139,7 @@ ApplicationWindow {
|
||||||
controlsBar.background.visible = false
|
controlsBar.background.visible = false
|
||||||
titleBar.visible = false
|
titleBar.visible = false
|
||||||
titleBackground.visible = false
|
titleBackground.visible = false
|
||||||
menuBar.visible = false
|
menuBar.visible = false;
|
||||||
mouseAreaPlayer.cursorShape = Qt.BlankCursor
|
mouseAreaPlayer.cursorShape = Qt.BlankCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -189,14 +189,33 @@ ApplicationWindow {
|
||||||
anchors.top: titleBar.bottom
|
anchors.top: titleBar.bottom
|
||||||
anchors.topMargin: 0
|
anchors.topMargin: 0
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
onDoubleClicked: {
|
||||||
|
playTimer.stop()
|
||||||
|
toggleFullscreen()
|
||||||
|
}
|
||||||
|
Action {
|
||||||
|
onTriggered: {
|
||||||
|
if (mainWindow.visibility == Window.FullScreen) {toggleFullscreen()}
|
||||||
|
}
|
||||||
|
shortcut: "Esc"
|
||||||
|
}
|
||||||
|
Timer {
|
||||||
|
id: playTimer
|
||||||
|
interval: 200
|
||||||
|
running: false
|
||||||
|
repeat: false
|
||||||
|
onTriggered: {
|
||||||
|
player.playerCommand(Enums.Commands.TogglePlayPause)
|
||||||
|
}
|
||||||
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (appearance.clickToPause) {
|
if (appearance.clickToPause) {
|
||||||
player.playerCommand(Enums.Commands.TogglePlayPause)
|
playTimer.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Timer {
|
Timer {
|
||||||
id: mouseAreaPlayerTimer
|
id: mouseAreaPlayerTimer
|
||||||
interval: 1000
|
interval: 2000
|
||||||
running: true
|
running: true
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
Loading…
Reference in a new issue