forked from qt-creator/qt-creator
Project: Unify handling of displayName
Unify the handling of displayName with a proper changed signal across all projects. Change-Id: I7e503528854b85f6f38de4b0943775f82a0d6123 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -94,8 +94,6 @@ class PythonProject : public Project
|
||||
public:
|
||||
explicit PythonProject(const Utils::FileName &filename);
|
||||
|
||||
QString displayName() const override;
|
||||
|
||||
bool addFiles(const QStringList &filePaths);
|
||||
bool removeFiles(const QStringList &filePaths);
|
||||
bool setFiles(const QStringList &filePaths);
|
||||
@@ -377,11 +375,7 @@ PythonProject::PythonProject(const FileName &fileName) :
|
||||
setId(PythonProjectId);
|
||||
setProjectContext(Context(PythonProjectContext));
|
||||
setProjectLanguages(Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
||||
}
|
||||
|
||||
QString PythonProject::displayName() const
|
||||
{
|
||||
return projectFilePath().toFileInfo().completeBaseName();
|
||||
setDisplayName(fileName.toFileInfo().completeBaseName());
|
||||
}
|
||||
|
||||
static QStringList readLines(const QString &absoluteFileName)
|
||||
|
||||
Reference in New Issue
Block a user