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>
(cherry picked from commit e9ee1c6b56
)
This commit is contained in:
committed by
Tim Jenssen
parent
8cb6b9a9ff
commit
f5183be6e8
@@ -143,7 +143,7 @@ QString DynamicPropertiesProxyModel::newPropertyName() const
|
|||||||
{
|
{
|
||||||
DynamicPropertiesModel *propsModel = dynamicPropertiesModel();
|
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)
|
void DynamicPropertiesProxyModel::createProperty(const QString &name, const QString &type)
|
||||||
|
Reference in New Issue
Block a user