forked from qt-creator/qt-creator
Introduce Project::projectFilePath()
Use it instead of retrieving this information from the document. Change-Id: I809fcb2daf59021cf503c371a5d40d75d7448796 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include <utils/styledbar.h>
|
||||
#include <utils/stylehelper.h>
|
||||
|
||||
#include <coreplugin/idocument.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/modemanager.h>
|
||||
@@ -237,7 +236,7 @@ QListWidgetItem *ProjectListWidget::itemForProject(Project *project)
|
||||
|
||||
QString ProjectListWidget::fullName(ProjectExplorer::Project *project)
|
||||
{
|
||||
return tr("%1 (%2)").arg(project->displayName(), project->document()->filePath());
|
||||
return tr("%1 (%2)").arg(project->displayName(), project->projectFilePath());
|
||||
}
|
||||
|
||||
void ProjectListWidget::addProject(Project *project)
|
||||
@@ -1395,7 +1394,7 @@ void MiniProjectTargetSelector::updateActionAndSummary()
|
||||
projectName = project->displayName();
|
||||
foreach (Project *p, ProjectExplorerPlugin::instance()->session()->projects()) {
|
||||
if (p != project && p->displayName() == projectName) {
|
||||
fileName = project->document()->filePath();
|
||||
fileName = project->projectFilePath();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user