aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-06-22 13:11:48 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-22 21:51:52 +0000
commitee287840f3fac45c76411e9ba3923bf4d2ba4982 (patch)
treecd304cd54ab956fb732fff322d01aa4f33d9d867
parenta823571e47d536367423d3c3e0a90e4f885bcf46 (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. Change-Id: I2250b6776e128debccf684f7832d8edbb093522a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 2855f912b87698a970af3581311fbd8224f0464d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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;