Commit e97a5656 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

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