on xenial help sign in
Use animators instead.
commit148f6b042ba0d401e178a5ff8d50a74191e029f6 authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 29 Jul 2014, 16:56 (12 years ago) parentb9a61ed
1 file changed+4−5
qml/Dash/Dash.qml+4−5
qml/Dash/Dash.qml+4−5
@@ -14,7 +14,7 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17−import QtQuick 2.0
17+import QtQuick 2.2
1818import Ubuntu.Components 0.1
1919import Unity 0.2
2020import Utils 0.1
@@ -177,20 +177,19 @@ Showable {
177177 SequentialAnimation {
178178 running: indicator.visible
179179 loops: Animation.Infinite
180− PropertyAnimation {
180+ XAnimator {
181181 from: -orange.width / 2
182182 to: indicator.width - orange.width / 2
183183 duration: UbuntuAnimation.SleepyDuration
184184 easing.type: Easing.InOutSine
185185 target: orange
186− property: "x"
187186 }
188− PropertyAnimation {
187+ XAnimator {
188+ from: indicator.width - orange.width / 2
189189 to: -orange.width / 2
190190 duration: UbuntuAnimation.SleepyDuration
191191 easing.type: Easing.InOutSine
192192 target: orange
193− property: "x"
194193 }
195194 }
196195 }