diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-03-05 11:41:23 +0100 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-03-06 19:23:04 +0100 |
| commit | 2cc30828af4ffe6d9cc0c6c91d3b665366a03f81 (patch) | |
| tree | abda558a1f928c34ba9d10052adfc1901a078774 /src/qml/compiler/qqmlirbuilder.cpp | |
| parent | 321a05e10bb0d1548f49f8dd077cae41ca490e44 (diff) | |
QML: Add final property attribute
This works the same as the FINAL attribute to Q_PROPERTY.
Task-number: QTBUG-98320
Change-Id: Icc2cf1afb5354fd711770f7147ded853b74cd1da
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/compiler/qqmlirbuilder.cpp')
| -rw-r--r-- | src/qml/compiler/qqmlirbuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp index a706285bcf..cdfa698ff6 100644 --- a/src/qml/compiler/qqmlirbuilder.cpp +++ b/src/qml/compiler/qqmlirbuilder.cpp @@ -1072,6 +1072,7 @@ bool IRBuilder::visit(QQmlJS::AST::UiPublicMember *node) Property *property = New<Property>(); property->setIsReadOnly(node->isReadonly()); property->setIsRequired(node->isRequired()); + property->setIsFinal(node->isFinal()); const QV4::CompiledData::CommonType builtinPropertyType = Parameter::stringToBuiltinType(memberType); |
