aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-06-22 13:11:48 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-06-22 22:21:24 +0200
commit2855f912b87698a970af3581311fbd8224f0464d (patch)
tree79cab3b7c283dd3d8568f0cf46dde85a6014853b
parente548d825aef388178147f27539b17cc8dc0d5e9a (diff)
Fix warnings in tst_action.qml
The warnings were: Parameter "source" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead. Shortcut: Only binding to one of multiple key bindings associated with 9. Use 'sequences: [ <key> ]' to bind to all of them. Pick-to: 6.1 6.2 Change-Id: I2250b6776e128debccf684f7832d8edbb093522a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--tests/auto/controls/data/tst_action.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_action.qml b/tests/auto/controls/data/tst_action.qml
index 946382ee..eded64b1 100644
--- a/tests/auto/controls/data/tst_action.qml
+++ b/tests/auto/controls/data/tst_action.qml
@@ -102,7 +102,7 @@ TestCase {
id: sharedAction
text: "Shared"
shortcut: "Ctrl+B"
- onTriggered: lastSource = source
+ onTriggered: (source) => lastSource = source
}
Button {
id: button
@@ -176,12 +176,12 @@ TestCase {
Shortcut {
id: indirectShortcut
- sequence: action.shortcut
+ sequences: [ action.shortcut ]
}
Shortcut {
id: directShortcut
- sequence: StandardKey.Copy
+ sequences: [ StandardKey.Copy ]
}
property alias indirect: indirectShortcut;