Commit 8102f3f6 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.componentView: fix for captions

Change-Id: I0ea2441d2989b8e395955b5e19ad45d341d12379
Reviewed-on: http://codereview.qt.nokia.com/716

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 05de6575
......@@ -142,10 +142,10 @@ void ComponentView::searchForComponentAndAddToList(const ModelNode &node)
QString description;
ModelNode parentNode = node.parentProperty().parentModelNode();
if (parentNode.isValid()) {
if (!parentNode.id().isEmpty()) {
description = node.parentProperty().parentModelNode().id() + QLatin1Char(' ');
if (parentNode.id().isEmpty()) {
description = parentNode.simplifiedTypeName() + QLatin1Char(' ');
} else {
description = node.parentProperty().parentModelNode().simplifiedTypeName() + QLatin1Char(' ');
description = parentNode.id() + QLatin1Char(' ');
}
}
description += node.parentProperty().name();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment