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
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 GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant
4
5#ifndef QQMLSACONSTANTS_H
6#define QQMLSACONSTANTS_H
7
8#include <QtCore/qtconfigmacros.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace QQmlSA {
13
30
31enum class ScriptBindingKind : unsigned int {
33 PropertyBinding, // property int p: 1 + 1
34 SignalHandler, // onSignal: { ... }
35 ChangeHandler, // onXChanged: { ... }
36};
37
48
49} // namespace QQmlSA
50
51QT_END_NAMESPACE
52
53#endif // QQMLSACONSTANTS_H
void onCall(const Element &element, const QString &propertyName, const Element &readScope, SourceLocation location) override
Executes whenever a property or method is called.
FunctionCallValidator(PassManager *manager)
void onCall(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) override
Executes whenever a property or method is called.
QdsBindingValidator(PassManager *manager, const Element &)
void onRead(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &readScope, QQmlSA::SourceLocation location) override
Executes whenever a property is read.
void onWrite(const QQmlSA::Element &element, const QString &propertyName, const QQmlSA::Element &value, const QQmlSA::Element &writeScope, QQmlSA::SourceLocation location) override
Executes whenever a property is written to.
void run(const Element &element) override
Executes if shouldRun() returns true.
QdsElementValidator(PassManager *passManager)
\inmodule QtQmlCompiler
constexpr LoggerWarningId ErrInvalidIdeInVisualDesigner
constexpr LoggerWarningId ErrUnsupportedTypeInQmlUi
constexpr LoggerWarningId ErrFunctionsNotSupportedInQmlUi
constexpr LoggerWarningId WarnImperativeCodeNotEditableInVisualDesigner
constexpr LoggerWarningId WarnReferenceToParentItemNotSupportedByVisualDesigner
constexpr LoggerWarningId ErrUnsupportedRootTypeInQmlUi