QmlDesigner: Prevent the dynamic property from being overwritten

Change-Id: Ia0bd78e0b1293b6d61251a68d7b4cf4ee234603e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Ali Kianian
2023-09-04 16:39:24 +03:00
parent 23a61ca926
commit 0d04bf9560

View File

@@ -265,8 +265,7 @@ QString QmlTextGenerator::propertyToQml(const AbstractProperty &property, int in
+ QString::fromUtf8(property.name())
+ QStringLiteral(": ")
+ toQml(property, indentDepth);
}
if (property.isSignalDeclarationProperty()) {
} else if (property.isSignalDeclarationProperty()) {
result = m_tabSettings.indentationString(0, indentDepth, 0) + "signal" + " "
+ QString::fromUtf8(property.name()) + " " + toQml(property, indentDepth);
} else {