summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativeanimation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Optimization: change signal/slot to function callmae2010-07-081-2/+2
|
* Added QDeclarativeSpringAnimationmae2010-07-071-0/+10
| | | | | | | | | | | | | The QDeclarativeSpringAnimation is a replacement for QDeclarativeSpringFollow. The idea is to remove the Follows quickly. Follows used to have an inSync property. In order to provide an alternative mechanism, the commit also fixes the running property for animations which are controlled by a behavior. Previously running would always return false and never change. Now running does change and indicates that the animation is running indeed.
* Prevent value source animations from being registered to start twice.Michael Brasser2010-06-241-0/+2
| | | | | If the animation had an explicit "running: true", the animation would be registered with the engine twice, which prevented a proper start.
* Doc fixesBea Lam2010-06-181-17/+7
|
* Doc improvements: move some example code to snippets, add screenshots,Bea Lam2010-06-091-10/+11
| | | | other minor doc fixes
* Add more Q_AUTOTEST_EXPORTsAaron Kennedy2010-06-031-43/+30
|
* Doc fixes and improvements - fix some example code, link toBea Lam2010-06-021-4/+19
| | | | examples from class docs and improve assorted docs
* Remove warnings.Warwick Allison2010-05-201-1/+0
| | | | Task-number: QTBUG-10816
* Doc improvementsBea Lam2010-05-191-0/+3
|
* Add parent parameter to QDeclarativeExpression constructor.Michael Brasser2010-05-181-1/+1
| | | | Also rearrange the parameter order to be more clear.
* Fix crash in ParentAnimation.Michael Brasser2010-05-141-7/+7
| | | | | | | | | | | copyOriginals plays with the order of the revertList, which messes up the assumptions of ParentAnimation. The full fix will require some rearchitecting of how the states and transitions handle "related" actions, but for now this fixes the crash. Reverting to the base state has also been fixed. Task-number: QTBUG-10671, QTBUG-10676
* Revert "Fix crash in ParentAnimation."Michael Brasser2010-05-141-9/+8
| | | | This reverts commit 8f800ea5611be333ae15f932dfea50bc80852c03.
* Fix crash in ParentAnimation.Michael Brasser2010-05-141-8/+9
| | | | | | When rolling-back a parent change, the actions are in reverse order. Task-number: QTBUG-10671
* qdoc fixesYann Bodson2010-05-061-6/+6
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-05-051-1/+1
|\
| * Use enum rather than string for easing type.Yann Bodson2010-05-051-1/+1
| |
* | Fix cacheBuffer documentation.Martin Jones2010-05-051-1/+1
|/ | | | Task-number: QTBUG-10385
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Warwick Allison2010-05-051-0/+10
|\
| * Don't start valuesource animations until all component objects have been ↵Michael Brasser2010-05-051-0/+10
| | | | | | | | | | | | completed. Task-number: QTBUG-9413
* | docWarwick Allison2010-05-051-57/+57
|/ | | | Task-number: QTBUG-10386
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7Peter Yard2010-04-271-9/+71
|\
| * Rename QDeclarativeExpression::value() to evaluate().Michael Brasser2010-04-221-1/+1
| | | | | | | | | | QDeclarativeExpression can be used to evaluate any sort of expression, not just those returning a value.
| * Add duration and easing properties to AnchorAnimation.Michael Brasser2010-04-221-1/+62
| |
| * Document default easing curve.Alan Alpert2010-04-191-1/+2
| |
| * Emit runtime warnings through QDeclarativeEngineAaron Kennedy2010-04-191-4/+4
| | | | | | | | QTBUG-9726
| * Doc: in QML use "real" and "enumeration", not "qreal" and "enum"Martin Jones2010-04-161-2/+2
| |
* | Docs Changes to start page. Minor change to Elements doc. See also added to ↵Peter Yard2010-04-271-0/+2
|/ | | | some elements docs.
* Rename the ridiculous QDeclarativeDeclarativeData -> QDeclarativeDataAaron Kennedy2010-04-151-1/+1
|
* Output script errors in ScriptAction and StateChangeScriptMartin Jones2010-04-151-0/+7
| | | | Task-number: QTBUG-9897
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-4/+4
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Change and rename qml EaseFollow to SmoothedAnimationLeonardo Sobral Cunha2010-03-301-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QDeclarativeSmoothedAnimation inherits from QDeclarativeNumberAnimation, as a consequence SmoothedAnimation can be used inside Behaviors and as PropertySourceValues, like any other animation. The old EaseFollow properties changed to comply with the other declarative animations ('source' changed to 'to'), so now 'to' changes are not automatically 'followed' anymore. You can achieve the following behavior by putting a SmoothedAnimation inside a Behavior of a property that is bound to another, as the following example: If you want to follow an hypothetical rect1, you should do now: Rectangle { color: "green" width: 60; height: 60; x: rect1.x - 5; y: rect1.y - 5; Behavior on x { SmoothedAnimation { velocity: 200 } } Behavior on y { SmoothedAnimation { velocity: 200 } } } SmoothedAnimation also supports animating multiple target(s)/property(ies) in the transition case. When a QDeclarativeSmoothedAnimation is restarted, it will match the QDeclarativeProperty which were being animated and transfer the corresponding track velocity to the new starting animations. QSmoothedAnimation is an uncontrolled animation, duration == -1. The duration is set as -1 to avoid consecutive animation state changes stop()/start(). This is particularly useful when using QSmoothAnimation to 'follow' another property, which is also being animated (change the 'to' property every tick). Reviewed-by: Michael Brasser
* Qt.Infinite -> Animation.InfiniteMichael Brasser2010-03-251-4/+7
| | | | | Too misleading to have on the Qt object, as it only means infinite for animation loops.
* Replace Animation's repeat property with loops.Michael Brasser2010-03-251-20/+32
| | | | | You can now loop a fixed number of times as well as forever. The old repeat behavior (loop forever) can be acheived with loops: Qt.Infinite.
* A StateChangeScript should never be run when leaving the state.Michael Brasser2010-03-241-4/+9
| | | | | For a Transition running in reverse, stop ScriptAction from running any StateSchageScripts.
* ScriptAction doc.Michael Brasser2010-03-241-0/+31
|
* Rename stateChangeScriptName to scriptName.Michael Brasser2010-03-241-2/+2
|
* Animation construction optimization.Michael Brasser2010-03-241-1/+1
| | | | Use setParent_NoEvent when parenting to group.
* Change default RotationAnimation direction.Michael Brasser2010-03-231-6/+7
| | | | | | Shortest as default too often led to unintuitive behavior. For example, RotationAnimation { from: 0; to: 360 } will not animate at all. Numerical gives the least surprising results.
* Add missing NOTIFYs.Michael Brasser2010-03-231-0/+12
| | | | Task-number: QTBUG-8816
* Remove ParentAction.Michael Brasser2010-03-231-211/+5
| | | | It has been replaced with ParentAnimation.
* Remove warningsYann Bodson2010-03-181-0/+1
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt into 4.7Alan Alpert2010-03-171-2/+2
|\ | | | | | | | | | | | | Conflicts: configure.exe src/declarative/util/qdeclarativelistmodel.cpp tools/qml/qml.pro
| * qdoc: Fixed lookup of QML property nodes.Martin Smith2010-03-111-2/+2
| | | | | | | | | | At this point, no QML qdoc errors appear in the output. There is still a lot of debug output.
* | Update more animation on property value source docs.Martin Jones2010-03-161-1/+1
| |
* | Make easing docs more consistent with other grouped property docs.Michael Brasser2010-03-141-4/+8
| |
* | Fix typo.Michael Brasser2010-03-141-1/+1
| |
* | Minor construction optimizations.Michael Brasser2010-03-111-0/+3
| |
* | Add AnchorAnimation for animating AnchorChanges.Michael Brasser2010-03-111-0/+95
|/ | | | Task-number: QT-2825
* doc: Fixed several qdoc errors.Martin Smith2010-03-091-3/+5
|
* Add basic support for explicit newParent in ParentAnimation.Michael Brasser2010-03-051-6/+56
|