diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-13 12:11:07 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-08-13 10:24:30 +0000 |
commit | ae345003aae27595de1db71bf69e5d53f89e08af (patch) | |
tree | f0436cd6d876c8f405cc9f0e5a443daf174b58dd /src/plugins/python | |
parent | afb4fb474f23c49691ff3d3a07c5b95cdea93c57 (diff) | |
download | qt-creator-ae345003aae27595de1db71bf69e5d53f89e08af.tar.gz |
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>
Diffstat (limited to 'src/plugins/python')
-rw-r--r-- | src/plugins/python/pythonplugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonplugin.cpp b/src/plugins/python/pythonplugin.cpp index 0aae69d905..7223dd772f 100644 --- a/src/plugins/python/pythonplugin.cpp +++ b/src/plugins/python/pythonplugin.cpp @@ -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) |