From 30aebff009545d0f90c158cdcb8897fa4f21160d Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 11 Oct 2016 12:20:49 +0200 Subject: [PATCH] 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 --- .../components/propertyeditor/propertyeditorview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index 7074bccb04f..f4498a3de26 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -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)) {