Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
ParallelAnimationWrapper Class Reference

\qmltype Transition \instantiates QQuickTransition \inqmlmodule QtQuick More...

+ Inheritance diagram for ParallelAnimationWrapper:
+ Collaboration diagram for ParallelAnimationWrapper:

Public Member Functions

 ParallelAnimationWrapper ()
 
- Public Member Functions inherited from QParallelAnimationGroupJob
 QParallelAnimationGroupJob ()
 
 ~QParallelAnimationGroupJob ()
 
int duration () const override
 
- Public Member Functions inherited from QAnimationGroupJob
 QAnimationGroupJob ()
 
 ~QAnimationGroupJob () override
 
void appendAnimation (QAbstractAnimationJob *animation)
 
void prependAnimation (QAbstractAnimationJob *animation)
 
void removeAnimation (QAbstractAnimationJob *animation)
 
Childrenchildren ()
 
const Childrenchildren () const
 
virtual void clear ()
 
- Public Member Functions inherited from QAbstractAnimationJob
 QAbstractAnimationJob ()
 
virtual ~QAbstractAnimationJob ()
 
QAnimationGroupJobgroup () const
 
int loopCount () const
 
void setLoopCount (int loopCount)
 
int totalDuration () const
 
QAbstractAnimationJob::Direction direction () const
 
void setDirection (QAbstractAnimationJob::Direction direction)
 
int currentTime () const
 
int currentLoopTime () const
 
int currentLoop () const
 
QAbstractAnimationJob::State state () const
 
bool isRunning ()
 
bool isStopped ()
 
bool isPaused ()
 
void setDisableUserControl ()
 
void setEnableUserControl ()
 
bool userControlDisabled () const
 
void setCurrentTime (int msecs)
 
void start ()
 
void pause ()
 
void resume ()
 
void stop ()
 
void complete ()
 
void addAnimationChangeListener (QAnimationJobChangeListener *listener, QAbstractAnimationJob::ChangeTypes)
 
void removeAnimationChangeListener (QAnimationJobChangeListener *listener, QAbstractAnimationJob::ChangeTypes)
 
bool isGroup () const
 
bool isRenderThreadJob () const
 
bool isRenderThreadProxy () const
 
- Public Member Functions inherited from QInheritedListNode
 ~QInheritedListNode ()
 
bool isInList () const
 

Public Attributes

QQuickTransitionManagermanager
 
- Public Attributes inherited from QAbstractAnimationJob
SelfDeletable m_selfDeletable
 

Protected Member Functions

void updateState (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override
 
- Protected Member Functions inherited from QParallelAnimationGroupJob
void updateCurrentTime (int currentTime) override
 
void updateState (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override
 
void updateDirection (QAbstractAnimationJob::Direction direction) override
 
void uncontrolledAnimationFinished (QAbstractAnimationJob *animation) override
 
void debugAnimation (QDebug d) const override
 
- Protected Member Functions inherited from QAnimationGroupJob
void topLevelAnimationLoopChanged () override
 
virtual void animationInserted (QAbstractAnimationJob *)
 
virtual void animationRemoved (QAbstractAnimationJob *, QAbstractAnimationJob *, QAbstractAnimationJob *)
 
void resetUncontrolledAnimationsFinishTime ()
 
void resetUncontrolledAnimationFinishTime (QAbstractAnimationJob *anim)
 
int uncontrolledAnimationFinishTime (const QAbstractAnimationJob *anim) const
 
void setUncontrolledAnimationFinishTime (QAbstractAnimationJob *anim, int time)
 
void debugChildren (QDebug d) const
 
void ungroupChild (QAbstractAnimationJob *animation)
 
void handleAnimationRemoved (QAbstractAnimationJob *animation)
 
- Protected Member Functions inherited from QAbstractAnimationJob
virtual void updateLoopCount (int)
 
void fireTopLevelAnimationLoopChanged ()
 
void setState (QAbstractAnimationJob::State state)
 
void finished ()
 
void stateChanged (QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState)
 
void currentLoopChanged ()
 
void directionChanged (QAbstractAnimationJob::Direction)
 
void currentTimeChanged (int currentTime)
 

Additional Inherited Members

- Public Types inherited from QAnimationGroupJob
using Children = QDoubleEndedList<QAbstractAnimationJob>
 
- Public Types inherited from QAbstractAnimationJob
enum  Direction { Forward , Backward }
 
enum  State { Stopped , Paused , Running }
 
enum  ChangeType { Completion = 0x01 , StateChange = 0x02 , CurrentLoop = 0x04 , CurrentTime = 0x08 }
 
- Protected Attributes inherited from QAnimationGroupJob
Children m_children
 
- Protected Attributes inherited from QAbstractAnimationJob
int m_loopCount
 
QAnimationGroupJobm_group
 
QAbstractAnimationJob::Direction m_direction
 
QAbstractAnimationJob::State m_state
 
int m_totalCurrentTime
 
int m_currentTime
 
int m_currentLoop
 
int m_uncontrolledFinishTime
 
int m_currentLoopStartTime
 
std::vector< ChangeListenerchangeListeners
 
QQmlAnimationTimerm_timer = nullptr
 
bool m_hasRegisteredTimer:1
 
bool m_isPause:1
 
bool m_isGroup:1
 
bool m_disableUserControl:1
 
bool m_hasCurrentTimeChangeListeners:1
 
bool m_isRenderThreadJob:1
 
bool m_isRenderThreadProxy:1
 

Detailed Description

\qmltype Transition \instantiates QQuickTransition \inqmlmodule QtQuick

Defines animated transitions that occur on state changes.

A Transition defines the animations to be applied when a \l State change occurs.

For example, the following \l Rectangle has two states: the default state, and an added "moved" state. In the "moved state, the rectangle's position changes to (50, 50). The added Transition specifies that when the rectangle changes between the default and the "moved" state, any changes to the \c x and \c y properties should be animated, using an \c Easing.InOutQuad. \snippet qml/transition.qml 0 Notice the example does not require \l{PropertyAnimation::}{to} and \l{PropertyAnimation::}{from} values for the NumberAnimation. As a convenience, these properties are automatically set to the values of \c x and \c y before and after the state change; the \c from values are provided by the current values of \c x and \c y, and the \c to values are provided by the PropertyChanges object. If you wish, you can provide \l{PropertyAnimation::}{to} and \l{PropertyAnimation::}{from} values anyway to override the default values. By default, a Transition's animations are applied for any state change in the parent item. The Transition \l {Transition::}{from} and \l {Transition::}{to} values can be set to restrict the animations to only be applied when changing from one particular state to another. Top-level animations within a transition are run in parallel. To run them sequentially, define them within a SequentialAnimation: \snippet qml/transition-reversible.qml sequential animations To define multiple Transitions, specify \l Item::transitions as a list: \snippet qml/transitions-list.qml list of transitions If multiple Transitions are specified, only a single (best-matching) Transition will be applied for any particular state change. In the example above, if the Rectangle enters a state other than \c "middleRight" or \c "bottomLeft", the third Transition will be carried out, meaning the icon will be moved to the starting point.

If a state change has a Transition that matches the same property as a \l Behavior, the Transition animation overrides the \l Behavior for that state change.

See also
{Animation and Transitions in Qt Quick}, {Qt Quick Examples - Animation::States}{States example}, {Qt Quick States}, {Qt Qml}

Definition at line 73 of file qquicktransition.cpp.

Constructor & Destructor Documentation

◆ ParallelAnimationWrapper()

ParallelAnimationWrapper::ParallelAnimationWrapper ( )
inline

Definition at line 76 of file qquicktransition.cpp.

Member Function Documentation

◆ updateState()

void ParallelAnimationWrapper::updateState ( QAbstractAnimationJob::State newState,
QAbstractAnimationJob::State oldState )
overrideprotectedvirtual

Reimplemented from QAbstractAnimationJob.

Definition at line 165 of file qquicktransition.cpp.

References QAbstractAnimationJob::Backward, QAbstractAnimationJob::currentLoopTime(), QAbstractAnimationJob::direction(), QParallelAnimationGroupJob::duration(), QAbstractAnimationJob::Forward, manager, newState(), QAbstractAnimationJob::Stopped, and QParallelAnimationGroupJob::updateState().

+ Here is the call graph for this function:

Member Data Documentation

◆ manager

QQuickTransitionManager* ParallelAnimationWrapper::manager

Definition at line 77 of file qquicktransition.cpp.

Referenced by updateState().


The documentation for this class was generated from the following file: