@@ -37,6 +37,9 @@ Rectangle {
3737 MouseArea {
3838 id: clickThroughTester
3939 anchors.fill: parent
40+ // SignalSpy does not seem to want to connect to the pressed signal. let's count them ourselves.
41+ property int pressCount: 0
42+ onPressed: pressCount++;
4043 }
4144
4245 Loader {
@@ -207,12 +210,6 @@ Rectangle {
207210 target: LauncherModel
208211 }
209212
210− SignalSpy {
211− id: clickThroughSpy
212− target: clickThroughTester
213− signalName: "clicked"
214− }
215−
216213 Item {
217214 id: fakeDismissTimer
218215 property bool running: false
@@ -846,12 +843,12 @@ Rectangle {
846843 function test_launcher_dismiss() {
847844 dragLauncherIntoView();
848845 verify(launcher.state == "visible");
849− clickThroughSpy.clear();
846+ clickThroughTester.pressCount = 0;
850847
851848 mouseClick(root, root.width / 2, units.gu(1));
852849 waitUntilLauncherDisappears();
853850 verify(launcher.state == "");
854− verify(clickThroughSpy.count, 1);
851+ verify(clickThroughTester.pressCount, 1);
855852
856853 // and repeat, as a test for regression in lpbug#1531339
857854 dragLauncherIntoView();
@@ -859,7 +856,7 @@ Rectangle {
859856 mouseClick(root, root.width / 2, units.gu(1));
860857 waitUntilLauncherDisappears();
861858 verify(launcher.state == "");
862− verify(clickThroughSpy.count, 2);
859+ verify(clickThroughTester.pressCount, 2);
863860 }
864861
865862 function test_quicklist_positioning_data() {