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:
@@ -72,6 +72,7 @@ GenericProject::GenericProject(const Utils::FileName &fileName) :
|
||||
setId(Constants::GENERICPROJECT_ID);
|
||||
setProjectContext(Context(GenericProjectManager::Constants::PROJECTCONTEXT));
|
||||
setProjectLanguages(Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
||||
setDisplayName(fileName.toFileInfo().completeBaseName());
|
||||
|
||||
const QFileInfo fileInfo = projectFilePath().toFileInfo();
|
||||
const QDir dir = fileInfo.dir();
|
||||
@@ -395,11 +396,6 @@ QStringList GenericProject::projectIncludePaths() const
|
||||
return m_projectIncludePaths;
|
||||
}
|
||||
|
||||
QString GenericProject::displayName() const
|
||||
{
|
||||
return projectFilePath().toFileInfo().completeBaseName();
|
||||
}
|
||||
|
||||
QStringList GenericProject::buildTargets() const
|
||||
{
|
||||
const QStringList targets = { "all", "clean" };
|
||||
|
||||
Reference in New Issue
Block a user