diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 5604e448da2..597d6d26dac 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -361,11 +361,6 @@ CMakeProjectNode *CMakeProject::generateProjectTree(const QListm_targets.isEmpty(); } void Project::configureAsExampleProject(const QSet &platforms) @@ -933,6 +933,8 @@ public: void testParsingFinished(bool success) { emitParsingFinished(success); } + + bool needsConfiguration() const final { return false; } }; class TestProjectNode : public ProjectNode diff --git a/src/plugins/projectexplorer/userfileaccessor.cpp b/src/plugins/projectexplorer/userfileaccessor.cpp index 0a13e8aa0d4..5841d721157 100644 --- a/src/plugins/projectexplorer/userfileaccessor.cpp +++ b/src/plugins/projectexplorer/userfileaccessor.cpp @@ -2219,6 +2219,8 @@ public: TestProject() : Project("x-test/testproject", Utils::FileName::fromString("/test/project")) { setDisplayName("Test Project"); } + + bool needsConfiguration() const final { return false; } }; } // namespace diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index 464b089f314..ef6f7ee838b 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -91,6 +91,8 @@ public: bool renameFile(const QString &filePath, const QString &newFilePath); void refresh(Target *target = nullptr); + bool needsConfiguration() const final { return false; } + private: RestoreResult fromMap(const QVariantMap &map, QString *errorMessage) override; bool setupTarget(Target *t) diff --git a/src/plugins/qbsprojectmanager/qbsproject.h b/src/plugins/qbsprojectmanager/qbsproject.h index 999fc20ed03..f545bf84baf 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.h +++ b/src/plugins/qbsprojectmanager/qbsproject.h @@ -134,7 +134,6 @@ private: void projectLoaded() override; ProjectExplorer::ProjectImporter *projectImporter() const override; - bool needsConfiguration() const override { return targets().isEmpty(); } static bool ensureWriteableQbsFile(const QString &file); diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index 6fa535633b9..8aaf320453c 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -1025,11 +1025,6 @@ void CentralizedFolderWatcher::delayedFolderChanged(const QString &folder) m_project->updateCodeModels(); } -bool QmakeProject::needsConfiguration() const -{ - return targets().isEmpty(); -} - void QmakeProject::configureAsExampleProject(const QSet &platforms) { QList infoList; diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.h b/src/plugins/qmakeprojectmanager/qmakeproject.h index bef8859e026..2e6982d85d1 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.h +++ b/src/plugins/qmakeprojectmanager/qmakeproject.h @@ -105,8 +105,6 @@ public: void watchFolders(const QStringList &l, QmakePriFile *file); void unwatchFolders(const QStringList &l, QmakePriFile *file); - bool needsConfiguration() const final; - void configureAsExampleProject(const QSet &platforms) final; /// \internal diff --git a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp index 41966381cf9..3277babc49f 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp @@ -64,6 +64,8 @@ public: root->addNode(fileNode); setRootProjectNode(root); } + + bool needsConfiguration() const final { return false; } }; QmlProfilerDetailsRewriterTest::QmlProfilerDetailsRewriterTest(QObject *parent) : QObject(parent)