| 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 | |
| 10 | QT_REQUIRE_CONFIG(animation); |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | class QAnimationGroupPrivate; |
| 15 | class Q_CORE_EXPORT QAnimationGroup : public QAbstractAnimation |
| 16 | { |
| 17 | Q_OBJECT |
| 18 | |
| 19 | public: |
| 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 | |
| 32 | protected: |
| 33 | QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent); |
| 34 | bool event(QEvent *event) override; |
| 35 | |
| 36 | private: |
| 37 | Q_DISABLE_COPY(QAnimationGroup) |
| 38 | Q_DECLARE_PRIVATE(QAnimationGroup) |
| 39 | }; |
| 40 | |
| 41 | QT_END_NAMESPACE |
| 42 | |
| 43 | #endif //QANIMATIONGROUP_H |
| 44 |
