QmlJSEditor: Build Snapshot by looking at imports of parsed files.

Previously we just scanned every directory containing a qml file for
other qml files.

This makes import ".." work.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-04-06 09:52:29 +02:00
parent b71d3eb145
commit 9402fad726
6 changed files with 154 additions and 115 deletions

View File

@@ -106,7 +106,7 @@ void QmlProject::parseProject(RefreshOptions options)
}
if (m_projectItem) {
m_projectItem.data()->setSourceDirectory(projectDir().path());
m_modelManager->updateSourceDirectories(m_projectItem.data()->files());
m_modelManager->updateSourceFiles(m_projectItem.data()->files());
}
m_rootNode->refresh();
}