ProjectExplorer: Replace RunControl::buildTargetInfo

... by two accessors to the only used field. General idea here
is to make the presence of a RunConfiguration in a RunControl
less prominent to be able to remove it at some time completely,
as the configuration's data might change while the control is
running.

Change-Id: I752540fadd135d6904fc9bf4e3506be074b0c003
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-08-07 12:16:48 +02:00
parent ebc2b9ed6f
commit a79957038a
4 changed files with 14 additions and 9 deletions

View File

@@ -891,9 +891,14 @@ QString RunControl::buildKey() const
return d->runConfiguration ? d->runConfiguration->buildKey() : QString();
}
BuildTargetInfo RunControl::buildTargetInfo() const
FilePath RunControl::targetFilePath() const
{
return d->runConfiguration->buildTargetInfo();
return d->runConfiguration->buildTargetInfo().targetFilePath;
}
FilePath RunControl::projectFilePath() const
{
return d->runConfiguration->buildTargetInfo().projectFilePath;
}
/*!