Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-11 09:21:48

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QANIMATIONGROUP_H
0006 #define QANIMATIONGROUP_H
0007 
0008 #include <QtCore/qabstractanimation.h>
0009 
0010 QT_REQUIRE_CONFIG(animation);
0011 
0012 QT_BEGIN_NAMESPACE
0013 
0014 class QAnimationGroupPrivate;
0015 class Q_CORE_EXPORT QAnimationGroup : public QAbstractAnimation
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     QAnimationGroup(QObject *parent = nullptr);
0021     ~QAnimationGroup();
0022 
0023     QAbstractAnimation *animationAt(int index) const;
0024     int animationCount() const;
0025     int indexOfAnimation(QAbstractAnimation *animation) const;
0026     void addAnimation(QAbstractAnimation *animation);
0027     void insertAnimation(int index, QAbstractAnimation *animation);
0028     void removeAnimation(QAbstractAnimation *animation);
0029     QAbstractAnimation *takeAnimation(int index);
0030     void clear();
0031 
0032 protected:
0033     QAnimationGroup(QAnimationGroupPrivate &dd, QObject *parent);
0034     bool event(QEvent *event) override;
0035 
0036 private:
0037     Q_DISABLE_COPY(QAnimationGroup)
0038     Q_DECLARE_PRIVATE(QAnimationGroup)
0039 };
0040 
0041 QT_END_NAMESPACE
0042 
0043 #endif //QANIMATIONGROUP_H