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
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
20
QT_BEGIN_NAMESPACE
21
22
class
QQuickStateGroupPrivate
;
23
class
Q_QUICK_EXPORT
QQuickStateGroup
:
public
QObject
,
public
QQmlParserStatus
24
{
25
Q_OBJECT
26
Q_INTERFACES
(
QQmlParserStatus
)
27
Q_DECLARE_PRIVATE(
QQuickStateGroup
)
28
29
Q_PROPERTY
(
QString
state
READ
state
WRITE setState NOTIFY stateChanged)
30
Q_PROPERTY
(
QQmlListProperty
<
QQuickState
>
states
READ statesProperty DESIGNABLE
false
)
31
Q_PROPERTY
(
QQmlListProperty
<
QQuickTransition
> transitions READ transitionsProperty DESIGNABLE
false
)
32
QML_NAMED_ELEMENT
(StateGroup)
33
QML_ADDED_IN_VERSION
(2, 0)
34
35
public:
36
QQuickStateGroup
(
QObject
* =
nullptr
);
37
virtual ~
QQuickStateGroup
();
38
39
QString
state
() const;
40
void
setState(const
QString
&);
41
42
QQmlListProperty
<
QQuickState
> statesProperty();
43
QList
<
QQuickState
*>
states
() const;
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;
52
Q_SIGNALS
:
53
void
stateChanged(const
QString
&);
54
55
private
:
56
friend class
QQuickState
;
57
friend class
QQuickStatePrivate
;
58
bool
updateAutoState();
59
void
stateAboutToComplete();
60
};
61
62
QT_END_NAMESPACE
63
64
#endif
// QQUICKSTATEGROUP_H
QList
Definition
qlist.h:75
QObject
\inmodule QtCore
Definition
qobject.h:103
QQmlListProperty
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition
qqmllist.h:24
QQmlParserStatus
The QQmlParserStatus class provides updates on the QML parser state.
Definition
qqmlparserstatus.h:14
QQuickStateGroupPrivate
Definition
qquickstategroup.cpp:25
QQuickStateGroup
Definition
qquickstategroup_p.h:24
QQuickStatePrivate
Definition
qquickstate_p_p.h:163
QQuickState
Definition
qquickstate_p.h:120
QQuickTransition
Definition
qquicktransition_p.h:59
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
state
else opt state
[0]
Definition
doc_src_styles.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
name
GLuint name
Definition
qopengles2ext.h:156
states
GLuint * states
Definition
qopenglext.h:9584
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
qquickstate_p.h
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_INTERFACES
#define Q_INTERFACES(x)
Definition
qtmetamacros.h:55
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
false
return false
Definition
src_corelib_thread_qatomic.cpp:23
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtdeclarative
src
quick
util
qquickstategroup_p.h
Generated by
1.10.0