diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-20 00:39:19 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 250fc1e03fea00a1a7e14555f652e713fdb38ede (patch) | |
tree | 6b0eb029e50fbe83d89a922c2b54d50ce53e2bee | |
parent | 23c56b3c314ef5601e4ba7670ddd2285cb44c303 (diff) | |
download | subsurface-250fc1e03fea00a1a7e14555f652e713fdb38ede.tar.gz |
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 <neolit123@gmail.com>
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 6 |
1 files changed, 1 insertions, 5 deletions
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() } } } |