summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativeanimation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* ParentAnimation docs + test.Michael Brasser2010-03-051-0/+63
| | | | Task-number: QTBUG-8612
* RotationAnimation docs + test.Michael Brasser2010-03-041-10/+12
| | | | Task-number: QTBUG-8613
* Update QML PropertyAnimation::easing docsLeonardo Sobral Cunha2010-03-041-2/+17
| | | | Task-number: QTBUG-8726
* Compile without QVariant::EasingCurve in Qt 4.6.2.Warwick Allison2010-03-041-3/+5
|
* 'on' syntax fixesYann Bodson2010-03-031-9/+9
|
* Initialize variable before use.Michael Brasser2010-03-021-1/+1
|
* Reapply "Some animation cleanup/refactoring."Michael Brasser2010-03-011-5/+6
| | | | | | | | This reverts commit 543c4b82e6d6cc4a396b1c105d7321643b6ef4c6. Conflicts: src/declarative/util/qdeclarativeanimation.cpp
* Rename QDeclarativeGraphics_setParent_noEvent QDeclarative_setParent_noEventMartin Jones2010-03-011-6/+6
|
* Merge remote branch 'origin/master' into 4.7Thiago Macieira2010-02-271-11/+12
| | | | | | | | | | | | | | | | | | | | | Conflicts: src/corelib/kernel/qmetatype.cpp src/declarative/graphicsitems/qdeclarativeevents.cpp src/declarative/graphicsitems/qdeclarativeflickable.cpp src/declarative/graphicsitems/qdeclarativegridview.cpp src/declarative/qml/qdeclarativescript.cpp src/declarative/util/qdeclarativeanimation.cpp src/declarative/util/qdeclarativebehavior.cpp src/declarative/util/qdeclarativeeasefollow.cpp src/declarative/util/qdeclarativefontloader.cpp src/declarative/util/qdeclarativelistmodel.cpp src/declarative/util/qdeclarativespringfollow.cpp src/declarative/util/qdeclarativestategroup.cpp src/declarative/util/qdeclarativesystempalette.cpp src/declarative/util/qdeclarativetimer.cpp src/declarative/util/qmlstateoperations.cpp src/multimedia/qml/qdeclarativeaudio.cpp src/multimedia/qml/qdeclarativevideo.cpp
* Revert "Some animation cleanup/refactoring."Leonardo Sobral Cunha2010-02-261-6/+5
| | | | This reverts commit b5700759da7bccf0ccd6e20b1727950532894ad2.
* Fix ParentAnimation crash.Michael Brasser2010-02-261-3/+6
|
* Some animation cleanup/refactoring.Michael Brasser2010-02-261-5/+6
|
* Add ParentAnimation.Michael Brasser2010-02-261-3/+239
| | | | | | | ParentAnimation will replace ParentAction. It provides two advantages: * It will animate correctly when reversed. * It allows reparenting via another item, which is useful in the presence of clips, for example.
* Rename QDeclarativeMetaProperty -> QDeclarativePropertyAaron Kennedy2010-02-251-18/+18
| | | | There's nothing meta about our properties.
* Make more private QDeclarativeMetaProperty methods privateAaron Kennedy2010-02-251-3/+4
|
* Remove QDeclarativeMetaProperty::createProperty() methodAaron Kennedy2010-02-251-1/+1
| | | | | The behavior of createProperty() (to resolve dot properties) is now the behavior of the constructors.
* Make QDeclarativeMetaType and QDeclarativeType privateAaron Kennedy2010-02-241-1/+1
|
* Simplify QML element registration headersAaron Kennedy2010-02-241-0/+1
|
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+2369
QDeclarativeXXX.