diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-08-03 11:40:56 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-08-03 11:41:27 (GMT) |
commit | a7b422e7ea439f4ca4eb7159fa33f679311b4fe2 (patch) | |
tree | 762ae49c195bddeece22ac1af0782fe73f7e8fe6 /demos/sub-attaq/custompropertyanimation.cpp | |
parent | f52c936991e796292a48b957cb93239a9c478bb0 (diff) | |
download | Qt-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.cpp | 2 |
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); } |