Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickpropertychanges_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 QQUICKPROPERTYCHANGES_H
5#define QQUICKPROPERTYCHANGES_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
19#include <private/qqmlcustomparser_p.h>
20
22
24class Q_QUICK_PRIVATE_EXPORT QQuickPropertyChanges : public QQuickStateOperation
25{
27 Q_DECLARE_PRIVATE(QQuickPropertyChanges)
28 Q_PROPERTY(QObject *target READ object WRITE setObject NOTIFY objectChanged FINAL)
29 Q_PROPERTY(bool restoreEntryValues READ restoreEntryValues WRITE setRestoreEntryValues
30 NOTIFY restoreEntryValuesChanged FINAL)
31 Q_PROPERTY(bool explicit READ isExplicit WRITE setIsExplicit NOTIFY isExplicitChanged FINAL)
32 QML_NAMED_ELEMENT(PropertyChanges)
35 Q_CLASSINFO("ImmediatePropertyNames", "target,restoreEntryValues,explicit,objectName")
36
37public:
40
41 QObject *object() const;
42 void setObject(QObject *);
43
44 bool restoreEntryValues() const;
45 void setRestoreEntryValues(bool);
46
47 bool isExplicit() const;
48 void setIsExplicit(bool);
49
50 ActionList actions() override;
51
52 bool containsProperty(const QString &name) const;
53 bool containsValue(const QString &name) const;
54 bool containsExpression(const QString &name) const;
55 void changeValue(const QString &name, const QVariant &value);
56 void changeExpression(const QString &name, const QString &expression);
57 void removeProperty(const QString &name);
58 QVariant value(const QString &name) const;
59 QString expression(const QString &name) const;
60
61 void detachFromState();
62 void attachToState();
63
64 QVariant property(const QString &name) const;
65
70};
71
73{
74public:
77
79
82};
83
84template<>
86{
88}
89
91
93
94#endif // QQUICKPROPERTYCHANGES_H
\inmodule QtCore
Definition qobject.h:90
The QQmlCustomParser class allows you to add new arbitrary types to QML.
void verifyBindings(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &props) override
void verifyList(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QV4::CompiledData::Binding *binding)
void applyBindings(QObject *obj, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &bindings) override
void restoreEntryValuesChanged()
virtual ActionList actions()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qvariant.h:64
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint object
[3]
GLenum target
GLenum GLuint GLsizei const GLenum * props
GLuint name
GLhandleARB obj
[2]
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_CUSTOMPARSER
QQmlCustomParser * qmlCreateCustomParser< QQuickPropertyChanges >()
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_CLASSINFO(name, value)
#define Q_SIGNALS
const char property[13]
Definition qwizard.cpp:101