4#include "private/qparallelanimationgroupjob_p.h"
5#include "private/qanimationjobutil_p.h"
12 , m_previousCurrentTime(0)
26 if (currentDuration == -1)
48 if (currentDuration >= 0)
49 dura =
qMax(dura, currentDuration);
76 || shouldAnimationStart(
animation, m_previousCurrentTime > dura )) {
161 m_previousCurrentTime = 0;
173 int uncontrolledRunningCount = 0;
178 }
else if (
child->duration() == -1 ||
child->loopCount() < 0) {
180 ++uncontrolledRunningCount;
184 if (uncontrolledRunningCount > 0)
192 maxDuration =
qMax(maxDuration, job->totalDuration());
206 d <<
"ParallelAnimationGroupJob(" <<
Qt::hex << (
const void *)
this <<
Qt::dec <<
")";
virtual void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState)
QAbstractAnimationJob::State m_state
int m_currentLoopStartTime
QAbstractAnimationJob::State state() const
QAbstractAnimationJob::Direction m_direction
QAbstractAnimationJob::Direction direction() const
State state
state of the animation.
void stop()
Stops the animation.
void start(QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped)
Starts the animation.
int loopCount
the loop count of the animation
int totalDuration() const
Returns the total and effective duration of the animation, including the loop count.
void setDirection(Direction direction)
int currentTime
the current time and progress of the animation
void setCurrentTime(int msecs)
void pause()
Pauses the animation.
void resetUncontrolledAnimationFinishTime(QAbstractAnimationJob *anim)
int uncontrolledAnimationFinishTime(const QAbstractAnimationJob *anim) const
void debugChildren(QDebug d) const
void setUncontrolledAnimationFinishTime(QAbstractAnimationJob *anim, int time)
int duration() const override
QParallelAnimationGroupJob()
void uncontrolledAnimationFinished(QAbstractAnimationJob *animation) override
void debugAnimation(QDebug d) const override
void updateDirection(QAbstractAnimationJob::Direction direction) override
void updateCurrentTime(int currentTime) override
void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState) override
~QParallelAnimationGroupJob()
int duration
the duration of the animation
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
QTextStream & hex(QTextStream &stream)
Calls QTextStream::setIntegerBase(16) on stream and returns stream.
QTextStream & dec(QTextStream &stream)
Calls QTextStream::setIntegerBase(10) on stream and returns stream.
#define RETURN_IF_DELETED(func)
static Q_CONSTINIT QBasicAtomicInt running
constexpr const T & qMax(const T &a, const T &b)