Qt 6.x
The Qt SDK
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
4#ifndef QPAUSEANIMATION_H
5#define QPAUSEANIMATION_H
6
7#include <QtCore/qanimationgroup.h>
8
10
12
14
15class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
16{
18 Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
19public:
20 QPauseAnimation(QObject *parent = nullptr);
21 QPauseAnimation(int msecs, QObject *parent = nullptr);
23
24 int duration() const override;
25 void setDuration(int msecs);
26 QBindable<int> bindableDuration();
27
28protected:
29 bool event(QEvent *e) override;
30 void updateCurrentTime(int) override;
31
32private:
33 Q_DISABLE_COPY(QPauseAnimation)
34 Q_DECLARE_PRIVATE(QPauseAnimation)
35};
36
38
39#endif // QPAUSEANIMATION_H
virtual void updateCurrentTime(int currentTime)=0
This pure virtual function is called every time the animation's currentTime changes.
int duration
the duration of the animation.
\inmodule QtCore
Definition qproperty.h:809
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
double e
Combined button and popup list for selecting options.
struct _cl_event * event
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
QPropertyAnimation animation
[0]
animation setDuration(1000)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent