From b9ff6032e047ff4390b9a7ed67f0e2641d46fb75 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 16 May 2011 16:06:32 +0200 Subject: [PATCH] QmlDesigner.propertyEditor: use simplified typename in captions --- src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index 7c063577ec..9c27096d40 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp @@ -610,7 +610,7 @@ QString templateGeneration(NodeMetaInfo type, NodeMetaInfo superType, const QmlO { QString qmlTemplate = QLatin1String("import Qt 4.7\nimport Bauhaus 1.0\n"); qmlTemplate += QLatin1String("GroupBox {\n"); - qmlTemplate += QString(QLatin1String("caption: \"%1\"\n")).arg(type.typeName()); + qmlTemplate += QString(QLatin1String("caption: \"%1\"\n")).arg(objectNode.modelNode().simplifiedTypeName()); qmlTemplate += QLatin1String("layout: VerticalLayout {\n"); QList orderedList; -- 2.11.0