blob: f661459f8352b688fedf3aea4037d6ded42b44bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QPAUSEANIMATION_H
#define QPAUSEANIMATION_H
#include <QtCore/qanimationgroup.h>
QT_REQUIRE_CONFIG(animation);
QT_BEGIN_NAMESPACE
class QPauseAnimationPrivate;
class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
{
Q_OBJECT
Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
public:
QPauseAnimation(QObject *parent = nullptr);
QPauseAnimation(int msecs, QObject *parent = nullptr);
~QPauseAnimation();
int duration() const override;
void setDuration(int msecs);
QBindable<int> bindableDuration();
protected:
bool event(QEvent *e) override;
void updateCurrentTime(int) override;
private:
Q_DISABLE_COPY(QPauseAnimation)
Q_DECLARE_PRIVATE(QPauseAnimation)
};
QT_END_NAMESPACE
#endif // QPAUSEANIMATION_H
|