Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickstatechangescript_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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKSTATEOPERATIONS_H
6#define QQUICKSTATEOPERATIONS_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include "qquickstate_p.h"
20#include <qqmlscriptstring.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQuickStateChangeScriptPrivate;
25class Q_QUICK_EXPORT QQuickStateChangeScript : public QQuickStateOperation, public QQuickStateActionEvent
26{
27 Q_OBJECT
28 Q_DECLARE_PRIVATE(QQuickStateChangeScript)
29
30 Q_PROPERTY(QQmlScriptString script READ script WRITE setScript)
31 Q_PROPERTY(QString name READ name WRITE setName)
32 QML_NAMED_ELEMENT(StateChangeScript)
33 QML_ADDED_IN_VERSION(2, 0)
34
35public:
36 QQuickStateChangeScript(QObject *parent=nullptr);
37
38 ActionList actions() override;
39
40 EventType type() const override;
41
42 QQmlScriptString script() const;
43 void setScript(const QQmlScriptString &);
44
45 QString name() const;
46 void setName(const QString &);
47
48 void execute() override;
49};
50
51
52QT_END_NAMESPACE
53
54#endif // QQUICKSTATEOPERATIONS_H
The QQmlProperty class abstracts accessing properties on objects created from QML.
void verifyBindings(const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &props) override
void verifyList(const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &compilationUnit, const QV4::CompiledData::Binding *binding)
void applyBindings(QObject *obj, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &bindings) override
ExpressionChange(const QString &_name, const QV4::CompiledData::Binding *_binding, QQmlBinding::Identifier _id, const QString &_expr, const QUrl &_url, int _line, int _column)
QQmlProperty property(const QString &)
QQmlRefPointer< QV4::ExecutableCompilationUnit > compilationUnit
void decodeBinding(const QString &propertyPrefix, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &qmlUnit, const QV4::CompiledData::Binding *binding)
QList< QQuickReplaceSignalHandler * > signalReplacements
QList< ExpressionChange > expressions
QList< const QV4::CompiledData::Binding * > bindings
\qmltype PropertyChanges \inqmlmodule QtQuick
void copyOriginals(QQuickStateActionEvent *other) override
bool mayOverride(QQuickStateActionEvent *other) override
EventType type() const override
QQmlRefPointer< QQmlBoundSignalExpression > rewindExpression
QQmlRefPointer< QQmlBoundSignalExpression > reverseExpression
QQmlRefPointer< QQmlBoundSignalExpression > expression
QQmlCustomParser * qmlCreateCustomParser< QQmlConnections >()