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

@@ -30,6 +30,7 @@
#include "qmlprojectmanager.h"
#include "qmlprojectconstants.h"
#include "qmlproject.h"
#include "qmltaskmanager.h"
#include <coreplugin/icore.h>
#include <coreplugin/ifile.h>
@@ -79,7 +80,12 @@ ProjectExplorer::Project *Manager::openProject(const QString &fileName)
}
if (fileInfo.isFile()) {
return new QmlProject(this, fileName);
QmlProject *project = new QmlProject(this, fileName);
QmlTaskManager *taskManager = QmlTaskManager::instance();
if (taskManager)
connect(project, SIGNAL(filesRemovedFromProject(QStringList)),
taskManager, SLOT(documentsRemoved(const QStringList)));
return project;
}
return 0;