forked from qt-creator/qt-creator
ProjectManager: Cut ties between Project and IProjectManager
Not needed, less code. Change-Id: Ie0d5c3a60f0392f30ed2ee9d2c5a32156b4e67e1 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -426,7 +426,7 @@ qbs::InstallJob *QbsProject::install(const qbs::InstallOptions &opts)
|
||||
|
||||
QString QbsProject::profileForTarget(const Target *t) const
|
||||
{
|
||||
return static_cast<QbsManager *>(projectManager())->profileForKit(t->kit());
|
||||
return QbsManager::profileForKit(t->kit());
|
||||
}
|
||||
|
||||
bool QbsProject::isParsing() const
|
||||
|
||||
@@ -114,7 +114,7 @@ QString QbsManager::profileForKit(const ProjectExplorer::Kit *k)
|
||||
{
|
||||
if (!k)
|
||||
return QString();
|
||||
updateProfileIfNecessary(k);
|
||||
m_instance->updateProfileIfNecessary(k);
|
||||
return settings()->value(qtcProfilePrefix() + k->id().toString()).toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
ProjectExplorer::Project *openProject(const QString &fileName) override;
|
||||
|
||||
// QBS profiles management:
|
||||
QString profileForKit(const ProjectExplorer::Kit *k);
|
||||
static QString profileForKit(const ProjectExplorer::Kit *k);
|
||||
void setProfileForKit(const QString &name, const ProjectExplorer::Kit *k);
|
||||
|
||||
void updateProfileIfNecessary(const ProjectExplorer::Kit *kit);
|
||||
|
||||
Reference in New Issue
Block a user