Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ElisaMainWindow.qml
Show All 37 Lines | 25 | ApplicationWindow { | |||
---|---|---|---|---|---|
38 | width: persistentSettings.width | 38 | width: persistentSettings.width | ||
39 | height: persistentSettings.height | 39 | height: persistentSettings.height | ||
40 | 40 | | |||
41 | title: i18n("Elisa") | 41 | title: i18n("Elisa") | ||
42 | 42 | | |||
43 | property var goBackAction: elisa.action("go_back") | 43 | property var goBackAction: elisa.action("go_back") | ||
44 | property var seekAction: elisa.action("Seek") | 44 | property var seekAction: elisa.action("Seek") | ||
45 | property var scrubAction: elisa.action("Scrub") | 45 | property var scrubAction: elisa.action("Scrub") | ||
46 | property var playPauseAction: elisa.action("Play-Pause") | ||||
46 | 47 | | |||
47 | Action { | 48 | Action { | ||
48 | shortcut: goBackAction.shortcut | 49 | shortcut: goBackAction.shortcut | ||
49 | onTriggered: contentView.goBack() | 50 | onTriggered: contentView.goBack() | ||
50 | } | 51 | } | ||
51 | 52 | | |||
52 | Action { | 53 | Action { | ||
53 | shortcut: seekAction.shortcut | 54 | shortcut: seekAction.shortcut | ||
54 | onTriggered: elisa.audioControl.seek(headerBar.playerControl.position + 10000) | 55 | onTriggered: elisa.audioControl.seek(headerBar.playerControl.position + 10000) | ||
55 | } | 56 | } | ||
56 | 57 | | |||
57 | Action { | 58 | Action { | ||
58 | shortcut: scrubAction.shortcut | 59 | shortcut: scrubAction.shortcut | ||
59 | onTriggered: elisa.audioControl.seek(headerBar.playerControl.position - 10000) | 60 | onTriggered: elisa.audioControl.seek(headerBar.playerControl.position - 10000) | ||
60 | } | 61 | } | ||
61 | 62 | | |||
63 | Action { | ||||
64 | shortcut: playPauseAction.shortcut | ||||
65 | onTriggered: elisa.audioControl.playPause() | ||||
66 | } | ||||
67 | | ||||
62 | ApplicationMenu { | 68 | ApplicationMenu { | ||
63 | id: applicationMenu | 69 | id: applicationMenu | ||
64 | } | 70 | } | ||
65 | 71 | | |||
66 | SystemPalette { | 72 | SystemPalette { | ||
67 | id: myPalette | 73 | id: myPalette | ||
68 | colorGroup: SystemPalette.Active | 74 | colorGroup: SystemPalette.Active | ||
69 | } | 75 | } | ||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |