Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qparallelanimationgroupjob_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPARALLELANIMATIONGROUPJOB_P_H
5#define QPARALLELANIMATIONGROUPJOB_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "private/qanimationgroupjob_p.h"
19
20QT_REQUIRE_CONFIG(qml_animation);
21
23
24class Q_QML_PRIVATE_EXPORT QParallelAnimationGroupJob : public QAnimationGroupJob
25{
26 Q_DISABLE_COPY(QParallelAnimationGroupJob)
27public:
30
31 int duration() const override;
32
33protected:
34 void updateCurrentTime(int currentTime) override;
38 void debugAnimation(QDebug d) const override;
39
40private:
41 bool shouldAnimationStart(QAbstractAnimationJob *animation, bool startIfAtEnd) const;
42 void applyGroupState(QAbstractAnimationJob *animation);
43
44 //state
45 int m_previousLoop = 0;
46 int m_previousCurrentTime = 0;
47};
48
50
51#endif // QPARALLELANIMATIONGROUPJOB_P_H
virtual void debugAnimation(QDebug d) const
virtual void updateState(QAbstractAnimationJob::State newState, QAbstractAnimationJob::State oldState)
virtual void updateDirection(QAbstractAnimationJob::Direction direction)
virtual void updateCurrentTime(int)
virtual void uncontrolledAnimationFinished(QAbstractAnimationJob *animation)
\inmodule QtCore
direction
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
static double currentTime()
QPropertyAnimation animation
[0]