From 250fc1e03fea00a1a7e14555f652e713fdb38ede Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 20 Jul 2017 00:39:19 +0300 Subject: mapwidget.qml: don't use the onSourceChanged() slot for flag animation It's best to only animate the flags when clicked, thus play the animation in the onClicked() slot from the MouseArea. Signed-off-by: Lubomir I. Ivanov --- mobile-widgets/qml/MapWidget.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mobile-widgets/qml/MapWidget.qml') diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 2d6319dd6..a5d7b652f 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -54,17 +54,13 @@ Item { target: mapItemImage; property: "scale"; from: 0.7; to: 1.0; duration: 80; } } - - onSourceChanged: { - if (mapHelper.model.selectedUuid === model.uuid) - mapItemImageAnimation.restart() - } } MouseArea { anchors.fill: parent onClicked: { mapHelper.model.selectedUuid = model.uuid + mapItemImageAnimation.restart() } } } -- cgit v1.2.3-70-g09d2