Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpauseanimation.h
Go to the documentation of this file.
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
11
12QT_BEGIN_NAMESPACE
13
14class QPauseAnimationPrivate;
15
16class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
17{
18 Q_OBJECT
19 Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
20public:
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
29protected:
30 bool event(QEvent *e) override;
31 void updateCurrentTime(int) override;
32
33private:
34 Q_DISABLE_COPY(QPauseAnimation)
35 Q_DECLARE_PRIVATE(QPauseAnimation)
36};
37
38QT_END_NAMESPACE
39
40#endif // QPAUSEANIMATION_H
\inmodule QtCore
QT_REQUIRE_CONFIG(animation)