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// Qt-Security score:significant reason:default
4
5#ifndef QANIMATIONGROUP_H
6#define QANIMATIONGROUP_H
7
8#include <QtCore/qabstractanimation.h>
9
10QT_REQUIRE_CONFIG(animation);
11
12QT_BEGIN_NAMESPACE
13
14class QAnimationGroupPrivate;
15class Q_CORE_EXPORT QAnimationGroup : public QAbstractAnimation
16{
17 Q_OBJECT
18
19public:
20 QAnimationGroup(QObject *parent = nullptr);
21 ~QAnimationGroup();
22
23 QAbstractAnimation *animationAt(int index) const;
24 int animationCount() const;
25 int indexOfAnimation(QAbstractAnimation *animation) const;
26 void addAnimation(QAbstractAnimation *animation);
27 void insertAnimation(int index, QAbstractAnimation *animation);
28 void removeAnimation(QAbstractAnimation *animation);
29 QAbstractAnimation *takeAnimation(int index);
30 void clear();
31
32protected:
33 QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent);
34 bool event(QEvent *event) override;
35
36private:
37 Q_DISABLE_COPY(QAnimationGroup)
38 Q_DECLARE_PRIVATE(QAnimationGroup)
39};
40
41QT_END_NAMESPACE
42
43#endif //QANIMATIONGROUP_H
44

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