Commit 2302feea authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.SubComponentManager: parse all direct subdirectories

We now parse all direct subdirectories for components
and show them in the item library.

Even if the import is still missing.
(We then create the import)

Change-Id: I359ccd75cb990df5e1ca2fabb40869739d85a19b
Reviewed-by: default avatarMarco Bubke <>
parent ec7a1c07
......@@ -135,6 +135,10 @@ void SubComponentManager::parseDirectories()
QFileInfo dirInfo = QFileInfo(QFileInfo(file).path());
if (dirInfo.exists() && dirInfo.isDir())
foreach (const QString subDir, QDir(QFileInfo(file).path()).entryList(QDir::Dirs | QDir::NoDot | QDir::NoDotDot)) {
parseDirectory(dirInfo.canonicalFilePath() + "/" + subDir, true, subDir);
foreach (const Import &import, m_imports) {
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