aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/filesystemexplorer
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2023-10-25 10:25:29 +0200
committerFriedemann Kleint <[email protected]>2023-11-01 22:30:45 +0200
commit4ba5c88d2d344052dae1f93a3a3e4f3e24654910 (patch)
treeb0fa56881cadc543451666e1ef2bcf8e7e58d608 /examples/quickcontrols/filesystemexplorer
parent34c4f8aa9ff90d6f614d0726ebf667ba0f435274 (diff)
File system explorer example: Improve shortcuts
Use the standard keys for zoom and quit. Pick-to: 6.6 Change-Id: I3659a5a84bc1e46938729710af31c834b8a50ed8 Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'examples/quickcontrols/filesystemexplorer')
-rw-r--r--examples/quickcontrols/filesystemexplorer/Main.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/quickcontrols/filesystemexplorer/Main.qml b/examples/quickcontrols/filesystemexplorer/Main.qml
index 233817de7f..9970ca02e2 100644
--- a/examples/quickcontrols/filesystemexplorer/Main.qml
+++ b/examples/quickcontrols/filesystemexplorer/Main.qml
@@ -36,12 +36,12 @@ ApplicationWindow {
Action {
text: qsTr("Increase Font")
- shortcut: "Ctrl++"
+ shortcut: StandardKey.ZoomIn
onTriggered: editor.text.font.pixelSize += 1
}
Action {
text: qsTr("Decrease Font")
- shortcut: "Ctrl+-"
+ shortcut: StandardKey.ZoomOut
onTriggered: editor.text.font.pixelSize -= 1
}
Action {
@@ -64,6 +64,7 @@ ApplicationWindow {
Action {
text: qsTr("Exit")
onTriggered: Qt.exit(0)
+ shortcut: StandardKey.Quit
}
}