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 QPARALLELANIMATIONGROUP_H
5#define QPARALLELANIMATIONGROUP_H
6
7#include <QtCore/qanimationgroup.h>
8
9QT_REQUIRE_CONFIG(animation);
10
11QT_BEGIN_NAMESPACE
12
13class QParallelAnimationGroupPrivate;
14class Q_CORE_EXPORT QParallelAnimationGroup : public QAnimationGroup
15{
16 Q_OBJECT
17
18public:
19 QParallelAnimationGroup(QObject *parent = nullptr);
20 ~QParallelAnimationGroup();
21
22 int duration() const override;
23
24protected:
25 QParallelAnimationGroup(QParallelAnimationGroupPrivate &dd, QObject *parent);
26 bool event(QEvent *event) override;
27
28 void updateCurrentTime(int currentTime) override;
29 void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
30 void updateDirection(QAbstractAnimation::Direction direction) override;
31
32private:
33 Q_DISABLE_COPY(QParallelAnimationGroup)
34 Q_DECLARE_PRIVATE(QParallelAnimationGroup)
35 Q_PRIVATE_SLOT(d_func(), void _q_uncontrolledAnimationFinished())
36};
37
38QT_END_NAMESPACE
39
40#endif // QPARALLELANIMATIONGROUP
41

source code of qtbase/src/corelib/animation/qparallelanimationgroup.h