forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user