Commit 5d7690cf authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.ItemLibrary: fix for directory imports

Change-Id: Iead5e80c5ec195b179b7f9af70fb9925e760593b
Reviewed-by: default avatarThomas Hartmann <>
parent 3d54df88
......@@ -382,6 +382,9 @@ bool ItemLibraryModel::isItemVisible(int itemLibId)
Import entryToImport(const ItemLibraryEntry &entry)
if (entry.majorVersion() == -1 && entry.minorVersion() == -1)
return Import::createFileImport(entry.requiredImport());
return Import::createLibraryImport(entry.requiredImport(), QString::number(entry.majorVersion()) + QLatin1Char('.') +
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