Commit 02f41a97 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: resolve versions for file components

If file components belong to a library import we should
resolve the version info.

Change-Id: I632af5a69934163c964672612a6453898abe1608
Reviewed-by: default avatarThomas Hartmann <>
parent 72d41501
......@@ -495,6 +495,12 @@ NodeMetaInfoPrivate::NodeMetaInfoPrivate(Model *model, QString type, int maj, in
} else {
m_isFileComponent = true;
const Imports *imports = context()->imports(document());
ImportInfo importInfo = imports->info(lookupNameComponent().last(), context().data());
if (importInfo.isValid() && importInfo.type() == ImportInfo::LibraryImport) {
m_majorVersion = importInfo.version().majorVersion();
m_minorVersion = importInfo.version().minorVersion();
setupPropertyInfo(getTypes(objectValue, context()));
setupLocalPropertyInfo(getTypes(objectValue, context(), true));
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