aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2012-01-19 10:09:40 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-27 06:23:15 +0100
commit3bbe8fdbab9a1f2f3f8ca40d5e25e2d5c5fb1a75 (patch)
tree485997211dd71688e2d4d452b00f8f150dde5c43 /tests/auto/qtquick2
parentabd8ff8b03038f349c8b54f094e500516e249f1b (diff)
PathInterpolator should report angle in clockwise direction.
This makes it much more intuitive when binding item rotation to angle. Change-Id: I5654866d9cd1c0ff5899c5571532fc7fedddd440 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2')
-rw-r--r--tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp b/tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
index bc4e132e30..d06085d29e 100644
--- a/tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
+++ b/tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
@@ -311,7 +311,7 @@ void tst_qdeclarativeanimations::pathInterpolator()
QCOMPARE(interpolator->progress(), qreal(.5));
QCOMPARE(interpolator->x(), qreal(175));
QCOMPARE(interpolator->y(), qreal(175));
- QCOMPARE(interpolator->angle(), qreal(270));
+ QCOMPARE(interpolator->angle(), qreal(90));
interpolator->setProgress(1);
QCOMPARE(interpolator->progress(), qreal(1));
@@ -331,13 +331,13 @@ void tst_qdeclarativeanimations::pathInterpolatorBackwardJump()
QCOMPARE(interpolator->progress(), qreal(0));
QCOMPARE(interpolator->x(), qreal(50));
QCOMPARE(interpolator->y(), qreal(50));
- QCOMPARE(interpolator->angle(), qreal(270));
+ QCOMPARE(interpolator->angle(), qreal(90));
interpolator->setProgress(.5);
QCOMPARE(interpolator->progress(), qreal(.5));
QCOMPARE(interpolator->x(), qreal(100));
QCOMPARE(interpolator->y(), qreal(75));
- QCOMPARE(interpolator->angle(), qreal(90));
+ QCOMPARE(interpolator->angle(), qreal(270));
interpolator->setProgress(1);
QCOMPARE(interpolator->progress(), qreal(1));
@@ -350,7 +350,7 @@ void tst_qdeclarativeanimations::pathInterpolatorBackwardJump()
QCOMPARE(interpolator->progress(), qreal(0));
QCOMPARE(interpolator->x(), qreal(50));
QCOMPARE(interpolator->y(), qreal(50));
- QCOMPARE(interpolator->angle(), qreal(270));
+ QCOMPARE(interpolator->angle(), qreal(90));
}
{