summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-06 08:33:46 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-05-06 08:33:46 (GMT)
commit612e0d23938b37907f3f4fdf9733732e4b7b8a7e (patch)
tree49723ea6297173ac6c8c3e5c57404c782773c4d3
parentd2c34394b7105e26612c1fe2b2bb22be4bd8e097 (diff)
downloadQt-612e0d23938b37907f3f4fdf9733732e4b7b8a7e.zip
Qt-612e0d23938b37907f3f4fdf9733732e4b7b8a7e.tar.gz
Qt-612e0d23938b37907f3f4fdf9733732e4b7b8a7e.tar.bz2
Remove superfluous code
We have gone back to the old definition of implicit start values where the a new default start value is sniffed every time the animation is restarted, so we do not need to emulate this behavior ourselves anymore. Behavior should be identical.
-rw-r--r--src/corelib/statemachine/qstatemachine.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp
index 98aa9f2..7d6616a 100644
--- a/src/corelib/statemachine/qstatemachine.cpp
+++ b/src/corelib/statemachine/qstatemachine.cpp
@@ -1019,13 +1019,6 @@ QStateMachinePrivate::initializeAnimation(QAbstractAnimation *abstractAnimation,
&& prop.object == animation->targetObject()
&& prop.propertyName == animation->propertyName()) {
- if (!animation->startValue().isValid()) {
- QByteArray propertyName = animation->propertyName();
- QVariant currentValue = animation->targetObject()->property(propertyName);
-
- QVariantAnimationPrivate::get(animation)->setDefaultStartValue(currentValue);
- }
-
// Only change end value if it is undefined
if (!animation->endValue().isValid()) {
animation->setEndValue(prop.value);