diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-10-25 10:25:29 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-11-02 05:18:38 +0000 |
commit | 434f7e45780a5279bab083ae3c35cbdcffe4a7bc (patch) | |
tree | b6a1b8dd9e6b00c79b0d92cddfaf2bd1717f2dad | |
parent | ca9e3ee30fe6e1756c219d9383667c26ada97a60 (diff) |
File system explorer example: Improve shortcuts
Use the standard keys for zoom and quit.
Change-Id: I3659a5a84bc1e46938729710af31c834b8a50ed8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 4ba5c88d2d344052dae1f93a3a3e4f3e24654910)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/quickcontrols/filesystemexplorer/Main.qml | 5 |
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 } } |