Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpauseanimationjob_p.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
4#ifndef QPAUSEANIMATIONJOB_P_H
5#define QPAUSEANIMATIONJOB_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qanimationgroupjob_p.h>
19
20QT_REQUIRE_CONFIG(qml_animation);
21
23
24class Q_QML_EXPORT QPauseAnimationJob : public QAbstractAnimationJob
25{
26 Q_DISABLE_COPY(QPauseAnimationJob)
27public:
28 explicit QPauseAnimationJob(int duration = 250);
29 ~QPauseAnimationJob() override;
30
31 int duration() const override;
32 void setDuration(int msecs);
33
34protected:
35 void updateCurrentTime(int) override;
36 void debugAnimation(QDebug d) const override;
37
38private:
39 //definition
40 int m_duration;
41};
42
44
45#endif // QPAUSEANIMATIONJOB_P_H
\inmodule QtCore
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
animation setDuration(1000)