| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Replace the usages of Follows with Behaviors, update docs.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Get rid of src/declarative/3rdparty.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The SmoothedFollow is the same as the old EaseFollow, so it's not an
animation, but its main use case is to be used as a property value
source to automatically follow the 'to' property, as in the example below.
Rectangle {
color: "green"
width: 60; height: 60;
SmoothedFollow on x { to: rect1.x - 5; velocity: 200 }
SmoothedFollow on y { to: rect1.y - 5; velocity: 200 }
}
This element shares the internal implementation with SmoothedAnimation,
both providing the same easing function, but with SmoothedFollow it's
easier to set a start value to animate intially and then start to follow,
while SmoothedAnimation is still convenient for using inside Behaviors
and Transitions.
Reviewed-by: Michael Brasser
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Got added in 081fafe395d52.
|
| |
|
| |
|
|
|
|
| |
Task-number: QT-2829
|
|
|
|
|
|
|
| |
Functions have been added to QML's global Qt object for date/time
formatting. Number formatting will not be supported for 4.7.
Task-number: QT-2821
|
|
|
|
| |
Task-number: QT-2822
|
|
|
|
| |
This reverts commit 327d212f5cff81f1c21b7be5c54b3e1eab4f0ac5.
|
|
|
|
|
|
|
|
|
| |
Could use to be renamed. Possibly to
-QDeclarativeViewGraphicsWidget
-QGraphicsDeclarativeViewWidget (Or QGraphicsD20, in the spirit of i18n)
But those aren't any shorter.
Task-number: QTBUG-7067
|
|
|
|
| |
QDeclarativeXXX.
|
|
|
|
| |
Task-number: QT-2798
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts:
src/declarative/util/util.pri
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
Task-number: QT-2316
|
|
|
|
|
| |
This allows us to delay the QML load until external script files have
been loaded from the network, and to correctly scope these scripts.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
SetProperties -> PropertyChanges
RunScript -> StateChangeScript
SetAnchors -> AnchorChanges
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
|
| |
| |
| |
| | |
This involves the introduction of separation between states and transition application. This was necessary to allow layouts to continue to use transitions.
|
| | |
|
|/ |
|
| |
|
|
|