diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 14:10:08 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 13:13:38 +0000 |
commit | 4ebbe994f5c9e229e00320187b86d8844d2784fa (patch) | |
tree | c405694f937b01cd58c16fac198368e9bf7a284f /tests/auto/extras | |
parent | 767120071bc5934bc428bb58a110d6ba9ebb6efb (diff) | |
download | qtquickcontrols-4ebbe994f5c9e229e00320187b86d8844d2784fa.tar.gz |
Make tst_piemenu compatible with QML SignalSpy changes
See qtdeclarative 2e7d4ec.
Change-Id: Ib2a0562a2810127924f0a80253fb93518aa511e5
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/extras')
-rw-r--r-- | tests/auto/extras/data/tst_piemenu.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/extras/data/tst_piemenu.qml b/tests/auto/extras/data/tst_piemenu.qml index cfbaa279..dbb3db38 100644 --- a/tests/auto/extras/data/tst_piemenu.qml +++ b/tests/auto/extras/data/tst_piemenu.qml @@ -137,9 +137,9 @@ Item { root = pieMenuComponent.createObject(container); var mouseArea = root.mouseArea; var pieMenu = root.pieMenu; - currentIndexSignalSpy.signalName = "onCurrentIndexChanged" + currentIndexSignalSpy.signalName = "currentIndexChanged" currentIndexSignalSpy.target = pieMenu; - actionSignalSpy.signalName = "onActionTriggered"; + actionSignalSpy.signalName = "actionTriggered"; actionSignalSpy.target = root; compare(pieMenu.triggerMode, TriggerMode.TriggerOnClick); @@ -547,7 +547,7 @@ Item { compare(pieMenu.__style.endAngle, originalEndAngle); for (i = 0; i < data.indexVisibility.length; ++i) { - actionSignalSpy.signalName = "onActionTriggered"; + actionSignalSpy.signalName = "actionTriggered"; actionSignalSpy.target = root; compare(pieMenu.visible, false); @@ -712,7 +712,7 @@ Item { // Move over middle item mouseMove(root, 100, 50) compare(pieMenu.currentIndex, 1) - selectedAngleChangedSpy.signalName = "onSelectionAngleChanged" + selectedAngleChangedSpy.signalName = "selectionAngleChanged" selectedAngleChangedSpy.target = pieMenu; // Move outside the middle item without changing angle mouseMove(root, 100, 98) @@ -737,7 +737,7 @@ Item { if (pieMenu.__style.title) tryCompare(pieMenu.__panel.titleItem, "text", "Action 1"); - actionSignalSpy.signalName = "onActionTriggered"; + actionSignalSpy.signalName = "actionTriggered"; actionSignalSpy.target = root; mouseClick(root, 230, 145); compare(actionSignalSpy.count, 1); @@ -811,7 +811,7 @@ Item { tryCompare(pieMenuComponent, "status", Component.Ready); root = pieMenuComponent.createObject(container); var pieMenu = root.pieMenu; - actionSignalSpy.signalName = "onActionTriggered"; + actionSignalSpy.signalName = "actionTriggered"; actionSignalSpy.target = root; mouseClick(root, 0, 0, Qt.LeftButton); @@ -840,7 +840,7 @@ Item { tryCompare(pieMenuComponent, "status", Component.Ready); root = pieMenuComponent.createObject(container); pieMenu = root.pieMenu; - actionSignalSpy.signalName = "onActionTriggered"; + actionSignalSpy.signalName = "actionTriggered"; actionSignalSpy.target = root; mouseClick(root, 0, 0, Qt.LeftButton); |