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
qquickparticlegroup_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#ifndef QQuickPARTICLEGROUP
4#define QQuickPARTICLEGROUP
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16#include <private/qquickspriteengine_p.h>
18#include "qqmlparserstatus.h"
19
21
22class Q_QUICKPARTICLES_EXPORT QQuickParticleGroup : public QQuickStochasticState,
23 public QQmlParserStatus
24{
26 Q_PROPERTY(QQuickParticleSystem* system READ system WRITE setSystem NOTIFY systemChanged)
27
28 //Intercept children requests and assign to the group & system
29 Q_PROPERTY(QQmlListProperty<QObject> particleChildren READ particleChildren DESIGNABLE false)//### Hidden property for in-state system definitions - ought not to be used in actual "Sprite" states
30 Q_CLASSINFO("DefaultProperty", "particleChildren")
31 QML_NAMED_ELEMENT(ParticleGroup)
34
35public:
36 explicit QQuickParticleGroup(QObject *parent = nullptr);
37
38 QQmlListProperty<QObject> particleChildren();
39
40 QQuickParticleSystem* system() const
41 {
42 return m_system;
43 }
44
45public Q_SLOTS:
46
47 void setSystem(QQuickParticleSystem* arg);
48
49 void delayRedirect(QObject* obj);
50
52
54
55protected:
56 void componentComplete() override;
57 void classBegin() override {}
58
59private:
60
61 void performDelayedRedirects();
62
63 QQuickParticleSystem* m_system;
64 QList<QObject*> m_delayedRedirects;
65};
66
68
69#endif
\inmodule QtCore
Definition qobject.h:103
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
The QQmlParserStatus class provides updates on the QML parser state.
void systemChanged(QQuickParticleSystem *arg)
void classBegin() override
Invoked after class creation, but before any properties have been set.
Combined button and popup list for selecting options.
GLhandleARB obj
[2]
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
SSL_CTX int void * arg
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_CLASSINFO(name, value)
#define Q_INTERFACES(x)
#define Q_SLOTS
#define Q_SIGNALS
#define explicit