forked from qt-creator/qt-creator
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:
@@ -265,8 +265,7 @@ QString QmlTextGenerator::propertyToQml(const AbstractProperty &property, int in
|
|||||||
+ QString::fromUtf8(property.name())
|
+ QString::fromUtf8(property.name())
|
||||||
+ QStringLiteral(": ")
|
+ QStringLiteral(": ")
|
||||||
+ toQml(property, indentDepth);
|
+ toQml(property, indentDepth);
|
||||||
}
|
} else if (property.isSignalDeclarationProperty()) {
|
||||||
if (property.isSignalDeclarationProperty()) {
|
|
||||||
result = m_tabSettings.indentationString(0, indentDepth, 0) + "signal" + " "
|
result = m_tabSettings.indentationString(0, indentDepth, 0) + "signal" + " "
|
||||||
+ QString::fromUtf8(property.name()) + " " + toQml(property, indentDepth);
|
+ QString::fromUtf8(property.name()) + " " + toQml(property, indentDepth);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user