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

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