Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlsaconstants.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 QQMLSACONSTANTS_H
5#define QQMLSACONSTANTS_H
6
7#include <QtCore/qfileinfo.h>
8
10
11class QQmlJSScope;
12
13namespace QQmlSA {
14
15enum BindingType : unsigned int {
30};
31
32enum ScriptBindingKind : unsigned int {
34 Script_PropertyBinding, // property int p: 1 + 1
35 Script_SignalHandler, // onSignal: { ... }
36 Script_ChangeHandler, // onXChanged: { ... }
37};
38
43};
44
46 SimplePropertyTarget, // e.g. `property int p: 42`
47 ListPropertyTarget, // e.g. `property list<Item> pList: [ Text {} ]`
48 UnnamedPropertyTarget // default property bindings, where property name is unspecified
49};
50
51enum class ScopeType {
58};
59
61} // namespace QQmlSA
62
64
65#endif // QQMLSACONSTANTS_H
Tracks the types for the QmlCompiler.
\inmodule QtQmlCompiler
@ ExtensionNamespace
@ Script_PropertyBinding
@ Script_ChangeHandler
@ Script_SignalHandler
Combined button and popup list for selecting options.