summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-03 00:09:37 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-03 00:09:37 (GMT)
commitc9e07d69ec084a75fc083baecd46d0b8b422d1c4 (patch)
tree408a2dbfb5d29b3882022f45ad099d422b62578c
parent398f97c90f52a8927ac1efe3d7e272da900d6be3 (diff)
parenteaf436568b2e6870a72e97baf2837d320f5d8ec8 (diff)
downloadQt-c9e07d69ec084a75fc083baecd46d0b8b422d1c4.zip
Qt-c9e07d69ec084a75fc083baecd46d0b8b422d1c4.tar.gz
Qt-c9e07d69ec084a75fc083baecd46d0b8b422d1c4.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
-rw-r--r--src/declarative/util/qdeclarativeanimation.cpp2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/util/qdeclarativeanimation.cpp b/src/declarative/util/qdeclarativeanimation.cpp
index ebf1a20..7f4f1c0 100644
--- a/src/declarative/util/qdeclarativeanimation.cpp
+++ b/src/declarative/util/qdeclarativeanimation.cpp
@@ -2225,7 +2225,7 @@ struct PropertyUpdater : public QDeclarativeBulkValueUpdater
bool fromSourced;
bool fromDefined;
bool *wasDeleted;
- PropertyUpdater() : wasDeleted(0) {}
+ PropertyUpdater() : prevInterpolatorType(0), wasDeleted(0) {}
~PropertyUpdater() { if (wasDeleted) *wasDeleted = true; }
void setValue(qreal v)
{
diff --git a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
index 0c166df..f5e15fb 100644
--- a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
+++ b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
@@ -217,11 +217,11 @@ void tst_qdeclarativeanimations::resume()
animation.setProperty("x");
animation.setFrom(10);
animation.setTo(200);
- animation.setDuration(500);
+ animation.setDuration(1000);
QVERIFY(animation.from() == 10);
animation.start();
- QTest::qWait(200);
+ QTest::qWait(400);
animation.pause();
qreal x = rect.x();
QVERIFY(x != qreal(200) && x != qreal(10));
@@ -231,7 +231,7 @@ void tst_qdeclarativeanimations::resume()
animation.resume();
QVERIFY(animation.isRunning());
QVERIFY(!animation.isPaused());
- QTest::qWait(200);
+ QTest::qWait(400);
animation.stop();
QVERIFY(rect.x() > x);
}