summaryrefslogtreecommitdiffstats
path: root/demos/sub-attaq/custompropertyanimation.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-08-03 11:40:56 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-08-03 11:41:27 (GMT)
commita7b422e7ea439f4ca4eb7159fa33f679311b4fe2 (patch)
tree762ae49c195bddeece22ac1af0782fe73f7e8fe6 /demos/sub-attaq/custompropertyanimation.cpp
parentf52c936991e796292a48b957cb93239a9c478bb0 (diff)
downloadQt-a7b422e7ea439f4ca4eb7159fa33f679311b4fe2.zip
Qt-a7b422e7ea439f4ca4eb7159fa33f679311b4fe2.tar.gz
Qt-a7b422e7ea439f4ca4eb7159fa33f679311b4fe2.tar.bz2
Fix compilation and warning
Reviewed-by: TrustMe
Diffstat (limited to 'demos/sub-attaq/custompropertyanimation.cpp')
-rw-r--r--demos/sub-attaq/custompropertyanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sub-attaq/custompropertyanimation.cpp b/demos/sub-attaq/custompropertyanimation.cpp
index 9282f42..27a4eba 100644
--- a/demos/sub-attaq/custompropertyanimation.cpp
+++ b/demos/sub-attaq/custompropertyanimation.cpp
@@ -96,7 +96,7 @@ void CustomPropertyAnimation::updateState(QAbstractAnimation::State oldState, QA
setKeyValues(values);
}
- if (animProp && !startValue().isValid() && currentTime() == 0
+ if ((animProp && !startValue().isValid() && currentTime() == 0)
|| (currentTime() == duration() && currentLoop() == (loopCount() - 1))) {
setStartValue(def);
}