diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-10-25 10:12:40 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-10-25 11:53:19 +0200 |
commit | 2126068526d576ca739ec5d8f2ec0310d0343e0a (patch) | |
tree | ae6d715a69c904b6f31a921ead9cbae0e3db6f51 /examples | |
parent | d74dca257111f82a7eb661791dafd360c3225bac (diff) |
File system explorer example: Improve shortcuts
Use the standard keys for zoom and the common Ctrl+Q for quit.
Pick-to: 6.6
Change-Id: I3659a5a84bc1e46938729710af31c834b8a50ed8
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml index 4dfc1590d..3987acc9e 100644 --- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml +++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml @@ -30,12 +30,12 @@ ApplicationWindow { Action { text: qsTr("Increase Font") - shortcut: "Ctrl++" + shortcut: StandardKey.ZoomIn onTriggered: textArea.font.pixelSize += 1 } Action { text: qsTr("Decrease Font") - shortcut: "Ctrl+-" + shortcut: StandardKey.ZoomOut onTriggered: textArea.font.pixelSize -= 1 } Action { @@ -46,6 +46,7 @@ ApplicationWindow { Action { text: qsTr("Exit") onTriggered: Qt.exit(0) + shortcut: "Ctrl+Q" } } |