| 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 QPAUSEANIMATION_H |
| 6 | #define QPAUSEANIMATION_H |
| 7 | |
| 8 | #include <QtCore/qanimationgroup.h> |
| 9 | |
| 10 | QT_REQUIRE_CONFIG(animation); |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | class QPauseAnimationPrivate; |
| 15 | |
| 16 | class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation |
| 17 | { |
| 18 | Q_OBJECT |
| 19 | Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration) |
| 20 | public: |
| 21 | QPauseAnimation(QObject *parent = nullptr); |
| 22 | QPauseAnimation(int msecs, QObject *parent = nullptr); |
| 23 | ~QPauseAnimation(); |
| 24 | |
| 25 | int duration() const override; |
| 26 | void setDuration(int msecs); |
| 27 | QBindable<int> bindableDuration(); |
| 28 | |
| 29 | protected: |
| 30 | bool event(QEvent *e) override; |
| 31 | void updateCurrentTime(int) override; |
| 32 | |
| 33 | private: |
| 34 | Q_DISABLE_COPY(QPauseAnimation) |
| 35 | Q_DECLARE_PRIVATE(QPauseAnimation) |
| 36 | }; |
| 37 | |
| 38 | QT_END_NAMESPACE |
| 39 | |
| 40 | #endif // QPAUSEANIMATION_H |
| 41 | |