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>
This commit is contained in:
Thomas Hartmann
2024-04-22 17:01:53 +02:00
parent d83e7d3d3d
commit e9ee1c6b56

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)