on xenial help sign in
Use animators instead.
148f6b0Michał Sawicz
qml/Dash/Dash.qml+4−5
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
15 */
16
16
17−import QtQuick 2.0
17+import QtQuick 2.2
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19import Unity 0.2
19import Unity 0.2
20import Utils 0.1
20import Utils 0.1
@@ -177,20 +177,19 @@ Showable {
177 SequentialAnimation {
177 SequentialAnimation {
178 running: indicator.visible
178 running: indicator.visible
179 loops: Animation.Infinite
179 loops: Animation.Infinite
180− PropertyAnimation {
180+ XAnimator {
181 from: -orange.width / 2
181 from: -orange.width / 2
182 to: indicator.width - orange.width / 2
182 to: indicator.width - orange.width / 2
183 duration: UbuntuAnimation.SleepyDuration
183 duration: UbuntuAnimation.SleepyDuration
184 easing.type: Easing.InOutSine
184 easing.type: Easing.InOutSine
185 target: orange
185 target: orange
186− property: "x"
187 }
186 }
188− PropertyAnimation {
187+ XAnimator {
188+ from: indicator.width - orange.width / 2
189 to: -orange.width / 2
189 to: -orange.width / 2
190 duration: UbuntuAnimation.SleepyDuration
190 duration: UbuntuAnimation.SleepyDuration
191 easing.type: Easing.InOutSine
191 easing.type: Easing.InOutSine
192 target: orange
192 target: orange
193− property: "x"
194 }
193 }
195 }
194 }
196 }
195 }