Qt 6.x
The Qt SDK
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
4#ifndef QQUICKSTATEOPERATIONS_H
5#define QQUICKSTATEOPERATIONS_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#include <qqmlscriptstring.h>
20
22
24class Q_QUICK_PRIVATE_EXPORT QQuickStateChangeScript : public QQuickStateOperation, public QQuickStateActionEvent
25{
27 Q_DECLARE_PRIVATE(QQuickStateChangeScript)
28
29 Q_PROPERTY(QQmlScriptString script READ script WRITE setScript FINAL)
30 Q_PROPERTY(QString name READ name WRITE setName FINAL)
31 QML_NAMED_ELEMENT(StateChangeScript)
33
34public:
36
37 ActionList actions() override;
38
39 EventType type() const override;
40
41 QQmlScriptString script() const;
42 void setScript(const QQmlScriptString &);
43
44 QString name() const;
45 void setName(const QString &);
46
47 void execute() override;
48};
49
50
52
54
55#endif // QQUICKSTATEOPERATIONS_H
\inmodule QtCore
Definition qobject.h:90
The QQmlScriptString class encapsulates a script and its context.
virtual void execute()
virtual ActionList actions()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
GLenum type
GLuint name
#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
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent