Hooked up the QML task manager again.

The QML task manager behaviour is to show warnings/errors for _saved_ files
only.
This commit is contained in:
Erik Verbruggen
2010-04-16 12:42:12 +02:00
parent fb9a9ceede
commit d88eaff481
11 changed files with 104 additions and 18 deletions

View File

@@ -121,14 +121,20 @@ void QmlProject::parseProject(RefreshOptions options)
void QmlProject::refresh(RefreshOptions options)
{
QSet<QString> oldFileList;
if (!(options & Configuration))
oldFileList = m_files.toSet();
const QSet<QString> oldFiles = m_files.toSet();
parseProject(options);
if (options & Files)
m_rootNode->refresh();
const QSet<QString> newFiles = m_files.toSet();
QStringList removedPaths;
foreach (const QString &oldFile, oldFiles)
if (!newFiles.contains(oldFile))
removedPaths.append(oldFile);
if (!removedPaths.isEmpty())
emit filesRemovedFromProject(removedPaths);
}
QStringList QmlProject::convertToAbsoluteFiles(const QStringList &paths) const