diff options
author | J-P Nurmi <jpnurmi@gmail.com> | 2018-01-31 19:38:45 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@gmail.com> | 2018-01-31 19:39:19 +0200 |
commit | a73307c58cde0a4503a43be94f3892745f68500e (patch) | |
tree | 0d9aab78fa7e6c320a225dd1c69ff80ac8baaa2f /tests/auto/controls/data/tst_action.qml | |
parent | 3323ca8e627db560665edb667e52d52233c05601 (diff) | |
parent | 5d27e14e4ca49263d9c3309b5e93d4cb386063cc (diff) |
Merge remote-tracking branch 'origin/5.10' into 5.11
Change-Id: I7c0333dbf959124f6cf5be7837a305b65c08d290
Diffstat (limited to 'tests/auto/controls/data/tst_action.qml')
-rw-r--r-- | tests/auto/controls/data/tst_action.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_action.qml b/tests/auto/controls/data/tst_action.qml index 7d057c26..35e65202 100644 --- a/tests/auto/controls/data/tst_action.qml +++ b/tests/auto/controls/data/tst_action.qml @@ -137,4 +137,32 @@ TestCase { keyClick(Qt.Key_B, Qt.ControlModifier) compare(container.lastSource, container.action) } + + Component { + id: actionAndRepeater + Item { + property alias action: testAction + Action { + id: testAction + shortcut: "Ctrl+A" + } + Repeater { + model: 1 + Button { + action: testAction + } + } + } + } + + function test_repeater() { + var container = createTemporaryObject(actionAndRepeater, testCase) + verify(container) + + var spy = signalSpy.createObject(container, {target: container.action, signalName: "triggered"}) + verify(spy.valid) + + keyClick(Qt.Key_A, Qt.ControlModifier) + compare(spy.count, 1) + } } |