summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-12 10:23:31 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-12 10:23:31 (GMT)
commit0b01202d770a5847af00dc6ebba0d2a75f1a271b (patch)
treec968ecf9241c566cce13354bf878a348436ab50e /tests/auto
parent5e12abc10ced54cf169773be78d19fc767b2439f (diff)
downloadQt-0b01202d770a5847af00dc6ebba0d2a75f1a271b.zip
Qt-0b01202d770a5847af00dc6ebba0d2a75f1a271b.tar.gz
Qt-0b01202d770a5847af00dc6ebba0d2a75f1a271b.tar.bz2
Kill warning in removeDefaultAnimation() test
Warning about animating non-existent properties.
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qstatemachine/tst_qstatemachine.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp
index df19f26..d24a945 100644
--- a/tests/auto/qstatemachine/tst_qstatemachine.cpp
+++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp
@@ -2715,9 +2715,12 @@ void tst_QStateMachine::removeDefaultAnimation()
{
QStateMachine machine;
+ QObject propertyHolder;
+ propertyHolder.setProperty("foo", 0);
+
QCOMPARE(machine.defaultAnimations().size(), 0);
- QPropertyAnimation *anim = new QPropertyAnimation(this, "foo");
+ QPropertyAnimation *anim = new QPropertyAnimation(&propertyHolder, "foo");
machine.addDefaultAnimation(anim);
@@ -2730,7 +2733,7 @@ void tst_QStateMachine::removeDefaultAnimation()
machine.addDefaultAnimation(anim);
- QPropertyAnimation *anim2 = new QPropertyAnimation(this, "foo");
+ QPropertyAnimation *anim2 = new QPropertyAnimation(&propertyHolder, "foo");
machine.addDefaultAnimation(anim2);
QCOMPARE(machine.defaultAnimations().size(), 2);