From 992a3ec4dca75aca80330918a37fd69524b7a76b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Fri, 10 Sep 2010 17:18:17 +0200 Subject: [PATCH] QmlDesigner.metaInfo: inherit defaultProperty --- .../qmldesigner/designercore/metainfo/subcomponentmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmldesigner/designercore/metainfo/subcomponentmanager.cpp b/src/plugins/qmldesigner/designercore/metainfo/subcomponentmanager.cpp index 35eec1224de..d04ba76eb6c 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/subcomponentmanager.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/subcomponentmanager.cpp @@ -334,6 +334,8 @@ void SubComponentManagerPrivate::registerQmlFile(const QFileInfo &fileInfo, cons nodeInfo.addProperty(propertyMetaInfo); } + if (!nodeInfo.hasDefaultProperty()) + nodeInfo.setDefaultProperty(nodeInfo.directSuperClass().defaultProperty()); } } // namespace Internal -- GitLab