1
0
Fork 0

[UI] Change keybind names.

This commit is contained in:
Kitteh 2018-10-24 17:49:20 +01:00
parent d4e0fd63d4
commit 4f5b8487a5

View file

@ -317,15 +317,15 @@ ApplicationWindow {
Settings { Settings {
id: keybinds id: keybinds
category: "Keybinds" category: "Keybinds"
property string pause_play: "K" property string PlayPause: "K"
property string forward_10: "L" property string Forward10: "L"
property string rewind_10: "J" property string Rewind10: "J"
property string open_file: "Ctrl+O" property string OpenFile: "Ctrl+O"
property string open_uri: "Ctrl+Shift+O" property string OpenURI: "Ctrl+Shift+O"
property string quit: "Ctrl+Q" property string Quit: "Ctrl+Q"
property string fullscreen: "F" property string Fullscreen: "F"
property string tracks: "Ctrl+T" property string Tracks: "Ctrl+T"
property string stats_for_nerds: "I" property string StatsForNerds: "I"
} }
MenuBar { MenuBar {
@ -378,18 +378,18 @@ ApplicationWindow {
Action { Action {
text: "Open File" text: "Open File"
onTriggered: fileDialog.open() onTriggered: fileDialog.open()
shortcut: keybinds.open_file shortcut: keybinds.OpenFile
} }
Action { Action {
text: "Open URI/URL" text: "Open URI/URL"
onTriggered: loadDialog.open() onTriggered: loadDialog.open()
shortcut: keybinds.open_uri shortcut: keybinds.OpenURI
} }
Action { Action {
text: "Exit" text: "Exit"
onTriggered: Qt.quit() onTriggered: Qt.quit()
shortcut: keybinds.quit shortcut: keybinds.Quit
} }
} }
@ -411,7 +411,7 @@ ApplicationWindow {
player.command(["cycle", "pause"]) player.command(["cycle", "pause"])
updateControls() updateControls()
} }
shortcut: String(keybinds.pause_play) shortcut: String(keybinds.PlayPause)
} }
Action { Action {
text: "Rewind 10s" text: "Rewind 10s"
@ -419,7 +419,7 @@ ApplicationWindow {
player.command(["seek", "-10"]) player.command(["seek", "-10"])
updateControls() updateControls()
} }
shortcut: keybinds.rewind_10 shortcut: keybinds.Rewind10
} }
Action { Action {
text: "Forward 10s" text: "Forward 10s"
@ -427,7 +427,7 @@ ApplicationWindow {
player.command(["seek", "10"]) player.command(["seek", "10"])
updateControls() updateControls()
} }
shortcut: keybinds.forward_10 shortcut: keybinds.Forward10
} }
} }
@ -450,7 +450,7 @@ ApplicationWindow {
subtitlesMenu.visible = !subtitlesMenu.visible subtitlesMenu.visible = !subtitlesMenu.visible
subtitlesMenuBackground.visible = !subtitlesMenuBackground.visible subtitlesMenuBackground.visible = !subtitlesMenuBackground.visible
} }
shortcut: keybinds.tracks shortcut: keybinds.Tracks
} }
Action { Action {
@ -458,7 +458,7 @@ ApplicationWindow {
onTriggered: { onTriggered: {
toggleFullscreen() toggleFullscreen()
} }
shortcut: keybinds.fullscreen shortcut: keybinds.Fullscreen
} }
Action { Action {
@ -466,7 +466,7 @@ ApplicationWindow {
onTriggered: { onTriggered: {
player.command(["script-binding", "stats/display-stats-toggle"]) player.command(["script-binding", "stats/display-stats-toggle"])
} }
shortcut: keybinds.stats_for_nerds shortcut: keybinds.StatsForNerds
} }
} }