Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsequentialanimationgroup.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 QSEQUENTIALANIMATIONGROUP_H
5#define QSEQUENTIALANIMATIONGROUP_H
6
7#include <QtCore/qanimationgroup.h>
8
10
12
13class QPauseAnimation;
15
16class Q_CORE_EXPORT QSequentialAnimationGroup : public QAnimationGroup
17{
19 Q_PROPERTY(QAbstractAnimation *currentAnimation READ currentAnimation
20 NOTIFY currentAnimationChanged BINDABLE bindableCurrentAnimation)
21
22public:
25
26 QPauseAnimation *addPause(int msecs);
27 QPauseAnimation *insertPause(int index, int msecs);
28
29 QAbstractAnimation *currentAnimation() const;
30 QBindable<QAbstractAnimation *> bindableCurrentAnimation() const;
31 int duration() const override;
32
35
36protected:
38 bool event(QEvent *event) override;
39
40 void updateCurrentTime(int) override;
43
44private:
45 Q_DISABLE_COPY(QSequentialAnimationGroup)
46 Q_DECLARE_PRIVATE(QSequentialAnimationGroup)
47 Q_PRIVATE_SLOT(d_func(), void _q_uncontrolledAnimationFinished())
48};
49
51
52#endif //QSEQUENTIALANIMATIONGROUP_H
State
This enum describes the state of the animation.
virtual void updateCurrentTime(int currentTime)=0
This pure virtual function is called every time the animation's currentTime changes.
virtual void updateDirection(QAbstractAnimation::Direction direction)
This virtual function is called by QAbstractAnimation when the direction of the animation is changed.
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
This virtual function is called by QAbstractAnimation when the state of the animation is changed from...
Direction
This enum describes the direction of the animation when in \l Running state.
int duration
the duration of the animation.
\inmodule QtCore
\inmodule QtCore
Definition qproperty.h:809
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
void currentAnimationChanged(QAbstractAnimation *current)
QSequentialAnimationGroup emits this signal when currentAnimation has been changed.
direction
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
GLuint index
[2]
struct _cl_event * event
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_PRIVATE_SLOT(d, signature)
#define Q_SIGNALS
QPropertyAnimation animation
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent