Qmake: Move some data accessors from QmakeProFile to QmakeProFileNode

These are not used during parsing but when operating on the items
in the project tree.

This loosens the ties between the qmake related parser and project
nodes.

Change-Id: I077356fcde240df56b466c71c902c821c4885f6d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-11-13 15:30:27 +01:00
parent b2cea9474c
commit 54efabd6e9
7 changed files with 48 additions and 39 deletions

View File

@@ -254,7 +254,8 @@ bool QmakeBuildConfiguration::isShadowBuild() const
QString QmakeBuildConfiguration::makefile() const
{
return static_cast<QmakeProject *>(target()->project())->rootProFile()->makefile();
auto rootNode = dynamic_cast<QmakeProFileNode *>(target()->project()->rootProjectNode());
return rootNode ? rootNode->makefile() : QString();
}
BaseQtVersion::QmakeBuildConfigs QmakeBuildConfiguration::qmakeBuildConfiguration() const