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
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:
23 QSequentialAnimationGroup(QObject *parent = nullptr);
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;
41 void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
42 void updateDirection(QAbstractAnimation::Direction direction) 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.
Direction
This enum describes the direction of the animation when in \l Running state.
\inmodule QtCore
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
\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]