blob: 77bc6eabac7168a5eb8f47cb0f5cb2f6b93b0626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QPARALLELANIMATIONGROUP_H
#define QPARALLELANIMATIONGROUP_H
#include <QtCore/qanimationgroup.h>
QT_REQUIRE_CONFIG(animation);
QT_BEGIN_NAMESPACE
class QParallelAnimationGroupPrivate;
class Q_CORE_EXPORT QParallelAnimationGroup : public QAnimationGroup
{
Q_OBJECT
public:
QParallelAnimationGroup(QObject *parent = nullptr);
~QParallelAnimationGroup();
int duration() const override;
protected:
QParallelAnimationGroup(QParallelAnimationGroupPrivate &dd, QObject *parent);
bool event(QEvent *event) override;
void updateCurrentTime(int currentTime) override;
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
void updateDirection(QAbstractAnimation::Direction direction) override;
private:
Q_DISABLE_COPY(QParallelAnimationGroup)
Q_DECLARE_PRIVATE(QParallelAnimationGroup)
Q_PRIVATE_SLOT(d_func(), void _q_uncontrolledAnimationFinished())
};
QT_END_NAMESPACE
#endif // QPARALLELANIMATIONGROUP
|