Nim: Fixed missing update of project files on add and remove

Change-Id: Iadbd5b9b04dcb16f53a16263f94f8f44835e5793
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Filippo Cucchetto
2016-12-03 13:34:01 +01:00
parent 6fd185d32d
commit 2b159ac9c9
5 changed files with 64 additions and 19 deletions

View File

@@ -52,15 +52,23 @@ public:
bool needsConfiguration() const override;
bool supportsKit(ProjectExplorer::Kit *k, QString *errorMessage) const override;
Utils::FileNameList nimFiles() const;
void scheduleProjectScan();
QVariantMap toMap() const override;
bool addFiles(const QStringList &filePaths);
bool removeFiles(const QStringList &filePaths);
bool renameFile(const QString &filePath, const QString &newFilePath);
protected:
RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) override;
private:
void scheduleProjectScan();
void collectProjectFiles();
void updateProject();
QStringList m_files;
QStringList m_excludedFiles;
QFutureWatcher<QList<ProjectExplorer::FileNode *>> m_futureWatcher;
QElapsedTimer m_lastProjectScan;
QTimer m_projectScanTimer;
};