Qt 6.x
The Qt SDK
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
55{
56}
57
65{
66 setDuration(msecs);
67}
68
73{
74}
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 if (msecs != d->duration) {
98 d->duration = msecs;
99 d->duration.notify();
100 } else {
101 d->duration.removeBindingUnlessInWrapper();
102 }
103}
104
106{
107 Q_D(QPauseAnimation);
108 return &d->duration;
109}
110
115{
117}
118
123{
124}
125
126
128
129#include "moc_qpauseanimation.cpp"
bool event(QEvent *event) override
\reimp
\inmodule QtCore
Definition qproperty.h:809
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
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
double e
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:162
#define Q_OBJECT_COMPAT_PROPERTY(...)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent