forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user