Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qanimationgroup_p.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 QANIMATIONGROUP_P_H
5#define QANIMATIONGROUP_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qanimationgroup.h"
19
20#include <QtCore/qlist.h>
21
22#include "private/qabstractanimation_p.h"
23
25
27
29{
30 Q_DECLARE_PUBLIC(QAnimationGroup)
31public:
33 {
34 isGroup = true;
35 }
36
39
40 void clear(bool onDestruction);
41
43 {
44 //0 for the signal here because we might be called from the animation destructor
45 QObject::disconnect(anim, nullptr, q_func(), SLOT(_q_uncontrolledAnimationFinished()));
46 }
47
49 {
50 QObject::connect(anim, SIGNAL(finished()), q_func(), SLOT(_q_uncontrolledAnimationFinished()));
51 }
52
54};
55
57
58#endif //QANIMATIONGROUP_P_H
QList< QAbstractAnimation * > animations
virtual void animationInsertedAt(qsizetype)
void disconnectUncontrolledAnimation(QAbstractAnimation *anim)
void connectUncontrolledAnimation(QAbstractAnimation *anim)
virtual void animationRemoved(qsizetype, QAbstractAnimation *)
\inmodule QtCore
Definition qlist.h:74
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2823
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
\threadsafe
Definition qobject.cpp:3099
b clear()
Combined button and popup list for selecting options.
#define SLOT(a)
Definition qobjectdefs.h:51
#define SIGNAL(a)
Definition qobjectdefs.h:52
#define QT_REQUIRE_CONFIG(feature)
ptrdiff_t qsizetype
Definition qtypes.h:70
QPropertyAnimation animation
[0]