Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickstategroup_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 QQUICKSTATEGROUP_H
5#define QQUICKSTATEGROUP_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 "qquickstate_p.h"
19
21
23class Q_QUICK_PRIVATE_EXPORT QQuickStateGroup : public QObject, public QQmlParserStatus
24{
27 Q_DECLARE_PRIVATE(QQuickStateGroup)
28
29 Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged FINAL)
30 Q_PROPERTY(QQmlListProperty<QQuickState> states READ statesProperty DESIGNABLE false FINAL)
31 Q_PROPERTY(QQmlListProperty<QQuickTransition> transitions READ transitionsProperty DESIGNABLE false FINAL)
32 QML_NAMED_ELEMENT(StateGroup)
34
35public:
36 QQuickStateGroup(QObject * = nullptr);
37 virtual ~QQuickStateGroup();
38
39 QString state() const;
40 void setState(const QString &);
41
42 QQmlListProperty<QQuickState> statesProperty();
44
45 QQmlListProperty<QQuickTransition> transitionsProperty();
46
47 QQuickState *findState(const QString &name) const;
48 void removeState(QQuickState *state);
49
50 void classBegin() override;
51 void componentComplete() override;
53 void stateChanged(const QString &);
54
55private:
56 friend class QQuickState;
57 friend class QQuickStatePrivate;
58 bool updateAutoState();
59 void stateAboutToComplete();
60};
61
63
65
66#endif // QQUICKSTATEGROUP_H
Definition qlist.h:74
\inmodule QtCore
Definition qobject.h:90
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.
virtual void classBegin()=0
Invoked after class creation, but before any properties have been set.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
void stateChanged(const QString &)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
else opt state
[0]
Combined button and popup list for selecting options.
GLuint name
GLuint * states
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INTERFACES(x)
#define Q_SIGNALS