forked from qt-creator/qt-creator
ProjectExplorer: De-virtualize some more virtual methods
Use setters/getters for the bool flags in Project::needsBuildConfigurations() and Project::hasMakeInstallEquivalent. Change-Id: I5ce937c3a5e8e0db627cda02a9007f8c28ccda0c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -95,7 +95,6 @@ public:
|
||||
void refresh(Target *target = nullptr);
|
||||
|
||||
bool needsConfiguration() const final { return false; }
|
||||
bool needsBuildConfigurations() const final { return false; }
|
||||
|
||||
bool writePyProjectFile(const QString &fileName, QString &content,
|
||||
const QStringList &rawList, QString *errorMessage);
|
||||
@@ -408,6 +407,8 @@ PythonProject::PythonProject(const FilePath &fileName) :
|
||||
setId(PythonProjectId);
|
||||
setProjectLanguages(Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
||||
setDisplayName(fileName.toFileInfo().completeBaseName());
|
||||
|
||||
setNeedsBuildConfigurations(false);
|
||||
}
|
||||
|
||||
static QStringList readLines(const Utils::FilePath &projectFile)
|
||||
|
||||
Reference in New Issue
Block a user