forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user