diff options
author | Tobias Hunger <[email protected]> | 2019-08-15 12:22:09 +0200 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2019-08-16 12:43:39 +0000 |
commit | b8be7da1584dc00164277deb525971e8b6123d98 (patch) | |
tree | afbb345785a207d2c9da87cb24a818de04fa9e49 /src/plugins/cmakeprojectmanager/tealeafreader.h | |
parent | c89a8a40845aa4b6106586b849c457107768e6ba (diff) |
CMake: Simplify based on Project::projectFileIsDirty signal
Delegate all the necessary file watching to Project and connect
to the relevant signal.
Server-mode insists on watching files itself, so that may not
report extra project files.
Change-Id: If821c54a7b0f8b72beed53dd1c83f255973faf3e
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/tealeafreader.h')
-rw-r--r-- | src/plugins/cmakeprojectmanager/tealeafreader.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/cmakeprojectmanager/tealeafreader.h b/src/plugins/cmakeprojectmanager/tealeafreader.h index db64cbaf9a4..c0c4c5a1168 100644 --- a/src/plugins/cmakeprojectmanager/tealeafreader.h +++ b/src/plugins/cmakeprojectmanager/tealeafreader.h @@ -37,8 +37,6 @@ namespace Utils { class QtcProcess; } namespace CMakeProjectManager { namespace Internal { -class CMakeFile; - class TeaLeafReader : public BuildDirReader { Q_OBJECT @@ -56,6 +54,7 @@ public: bool isParsing() const final; + QVector<Utils::FilePath> takeProjectFilesToWatch() final; QList<CMakeBuildTarget> takeBuildTargets(QString &errorMessage) final; CMakeConfig takeParsedConfiguration(QString &errorMessage) final; std::unique_ptr<CMakeProjectNode> generateProjectTree( @@ -80,7 +79,6 @@ private: QString m_projectName; QList<CMakeBuildTarget> m_buildTargets; std::vector<std::unique_ptr<ProjectExplorer::FileNode>> m_files; - QSet<Internal::CMakeFile *> m_watchedFiles; // RegExps for function-like macrosses names fixups QRegularExpression m_macroFixupRe1; |