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
qpauseanimation.cpp
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
28#include "qpauseanimation.h"
30#include "private/qproperty_p.h"
31
33
35{
36 Q_DECLARE_PUBLIC(QPauseAnimation)
37public:
39 {
40 isPause = true;
41 }
42
43 void setDuration(int msecs) { q_func()->setDuration(msecs); }
46};
47
57
68
75
84{
85 Q_D(const QPauseAnimation);
86 return d->duration;
87}
88
90{
91 if (msecs < 0) {
92 qWarning("QPauseAnimation::setDuration: cannot set a negative duration");
93 return;
94 }
95 Q_D(QPauseAnimation);
96
97 d->duration.removeBindingUnlessInWrapper();
98 if (msecs != d->duration.valueBypassingBindings()) {
99 d->duration.setValueBypassingBindings(msecs);
100 d->duration.notify();
101 }
102}
103
105{
106 Q_D(QPauseAnimation);
107 return &d->duration;
108}
109
117
124
125
127
128#include "moc_qpauseanimation.cpp"
bool event(QEvent *event) override
\reimp
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
void setDuration(int msecs)
\inmodule QtCore
int duration
the duration of the pause.
QPauseAnimation(QObject *parent=nullptr)
Constructs a QPauseAnimation.
~QPauseAnimation()
Destroys the pause animation.
QBindable< int > bindableDuration()
void updateCurrentTime(int) override
\reimp
void setDuration(int msecs)
bool event(QEvent *e) override
\reimp
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:166
#define Q_OBJECT_COMPAT_PROPERTY(...)