mapwidget.qml: reduce the properies in mapAnimation to single lines

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-07-20 01:11:10 +03:00 committed by Dirk Hohndel
parent 11eaea01dd
commit 6aa57ce7f7

View file

@ -69,17 +69,10 @@ Item {
ParallelAnimation { ParallelAnimation {
id: mapAnimation id: mapAnimation
CoordinateAnimation { CoordinateAnimation {
target: map target: map; property: "center"; to: map.newCenter; duration: 2000;
property: "center"
to: map.newCenter
duration: 2000
} }
NumberAnimation { NumberAnimation {
target: map target: map; property: "zoomLevel"; to: map.newZoom; duration: 3000; easing.type: Easing.InCubic;
property: "zoomLevel"
to: map.newZoom
duration: 3000
easing.type: Easing.InCubic
} }
} }