Project: Make setRequiredKitPredicate private

Make calling Project::supportsKit(...) the default implementation.

Change-Id: I0e47972097e760e2ff3be229afb85eff839146b8
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2018-02-16 12:26:58 +01:00
parent 9467ed42c3
commit 8059bf6204
10 changed files with 20 additions and 15 deletions

View File

@@ -41,17 +41,17 @@ class NimProject : public ProjectExplorer::Project
public:
explicit NimProject(const Utils::FileName &fileName);
bool needsConfiguration() const override;
bool supportsKit(ProjectExplorer::Kit *k, QString *errorMessage) const override;
bool needsConfiguration() const final;
bool supportsKit(const ProjectExplorer::Kit *k, QString *errorMessage) const final;
Utils::FileNameList nimFiles() const;
QVariantMap toMap() const override;
QVariantMap toMap() const final;
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;
RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) final;
private:
void scheduleProjectScan();