QmlDesigner: Do not use property as default property name

property is a keyword and a bad default.

Change-Id: Ieb38f08f5f049fe6b540304945ce95ae6c18b55e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
(cherry picked from commit e9ee1c6b56)
This commit is contained in:
Thomas Hartmann
2024-04-22 17:01:53 +02:00
committed by Tim Jenssen
parent 8cb6b9a9ff
commit f5183be6e8

View File

@@ -143,7 +143,7 @@ QString DynamicPropertiesProxyModel::newPropertyName() const
{
DynamicPropertiesModel *propsModel = dynamicPropertiesModel();
return QString::fromUtf8(uniquePropertyName("property", propsModel->singleSelectedNode()));
return QString::fromUtf8(uniquePropertyName("newName", propsModel->singleSelectedNode()));
}
void DynamicPropertiesProxyModel::createProperty(const QString &name, const QString &type)