File indexing completed on 2025-01-18 10:07:15
0001
0002
0003
0004 #ifndef QANIMATIONGROUP_H
0005 #define QANIMATIONGROUP_H
0006
0007 #include <QtCore/qabstractanimation.h>
0008
0009 QT_REQUIRE_CONFIG(animation);
0010
0011 QT_BEGIN_NAMESPACE
0012
0013 class QAnimationGroupPrivate;
0014 class Q_CORE_EXPORT QAnimationGroup : public QAbstractAnimation
0015 {
0016 Q_OBJECT
0017
0018 public:
0019 QAnimationGroup(QObject *parent = nullptr);
0020 ~QAnimationGroup();
0021
0022 QAbstractAnimation *animationAt(int index) const;
0023 int animationCount() const;
0024 int indexOfAnimation(QAbstractAnimation *animation) const;
0025 void addAnimation(QAbstractAnimation *animation);
0026 void insertAnimation(int index, QAbstractAnimation *animation);
0027 void removeAnimation(QAbstractAnimation *animation);
0028 QAbstractAnimation *takeAnimation(int index);
0029 void clear();
0030
0031 protected:
0032 QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent);
0033 bool event(QEvent *event) override;
0034
0035 private:
0036 Q_DISABLE_COPY(QAnimationGroup)
0037 Q_DECLARE_PRIVATE(QAnimationGroup)
0038 };
0039
0040 QT_END_NAMESPACE
0041
0042 #endif