on xenial help sign in
Pass the correct number of arguments to mapToItem

One argument used to work in Qt 5.4 and 5.5 but it is not documented and seems to have broken on Qt 5.6 so just update to the correct signature

commit0d23f8d6b112dbc094a95c758fb817cdd582097d authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 27 Jul 2016, 16:41 (10 years ago) parent77a5424
1 file changed+2−2
tests/qmltests/Stages/tst_PhoneStage.qml+2−2
tests/qmltests/Stages/tst_PhoneStage.qml+2−2
@@ -272,7 +272,7 @@ Item {
272272 var tile = findChild(spreadView, "spreadDelegate_" + topLevelSurfaceList.idAt(data.index));
273273 var appId = ApplicationManager.get(data.index).appId;
274274
275− if (tile.mapToItem(spreadView).x > spreadView.width) {
275+ if (tile.mapToItem(spreadView, 0, 0).x > spreadView.width) {
276276 // Item is not visible... Need to flick the spread
277277 var startX = phoneStage.width - units.gu(1);
278278 var startY = phoneStage.height / 2;
@@ -286,7 +286,7 @@ Item {
286286
287287 console.log("clicking app", data.index, "(", appId, ")")
288288 tryCompare(tile, "swipeToCloseEnabled", true);
289− mouseClick(spreadView, tile.mapToItem(spreadView).x + units.gu(1), spreadView.height / 2)
289+ mouseClick(spreadView, tile.mapToItem(spreadView, 0, 0).x + units.gu(1), spreadView.height / 2)
290290 tryCompare(ApplicationManager, "focusedApplicationId", appId);
291291 tryCompare(spreadView, "phase", 0);
292292 }