Commit e97a5656 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.ItemLibrary: fix search pathes for .metainfo

Change-Id: I8f79b8ad41acc8f8aa77d78037191513596de924
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 21150df9
......@@ -212,10 +212,11 @@ void SubComponentManager::parseDirectories()
parseDirectory(dirInfo.canonicalFilePath(), true, dirInfo.baseName().toUtf8());
} else {
QString url = import.url();
url.replace(QLatin1Char('.'), QLatin1Char('/'));
QFileInfo dirInfo = QFileInfo(url);
foreach (const QString &path, importPaths()) {
url.replace(QLatin1Char('.'), QLatin1Char('/'));
url = path + QLatin1Char('/') + url;
QFileInfo dirInfo = QFileInfo(url);
QString fullUrl = path + QLatin1Char('/') + url;
dirInfo = QFileInfo(fullUrl);
if (dirInfo.exists() && dirInfo.isDir()) {
//### todo full qualified names QString nameSpace = import.uri();
parseDirectory(dirInfo.canonicalFilePath(), false);
......
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