QmlDesigner: Remove dots form alias property names

For dor properties (e.g. border.color) we have to remove the dot.

Change-Id: I2a8fc515bf1c25cf85c18f90a5075e50626e0f89
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2016-10-11 12:20:49 +02:00
committed by Thomas Hartmann
parent 72ee54a928
commit 30aebff009

View File

@@ -318,7 +318,8 @@ void PropertyEditorView::exportPopertyAsAlias(const QString &name)
const QString id = m_selectedNode.validId();
QString upperCasePropertyName = name;
upperCasePropertyName.replace(0, 1, upperCasePropertyName.at(0).toUpper());
const QString aliasName = id + upperCasePropertyName;
QString aliasName = id + upperCasePropertyName;
aliasName.replace(".", ""); //remove all dots
PropertyName propertyName = aliasName.toUtf8();
if (rootModelNode().hasProperty(propertyName)) {