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:
hjk
2017-02-28 18:41:02 +01:00
parent 716f6e7f1c
commit be204a125e
12 changed files with 24 additions and 85 deletions

View File

@@ -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

View File

@@ -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();
}

View File

@@ -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);