ProjectExplorer: Hide parts of BuildStep's QObject-ness from users

This lets the compiler catch issues like QTCREATORBUG-22818 and
saves visible casts on the user side.

Change-Id: I5a307a55364daa0bec039a4c38cc9827841ff9c1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-08-16 12:16:17 +02:00
parent e425706c4d
commit 9d206a2bc4
6 changed files with 16 additions and 7 deletions

View File

@@ -442,7 +442,7 @@ void QMakeStep::setSeparateDebugInfo(bool enable)
FilePath QMakeStep::makeCommand() const
{
auto ms = qobject_cast<BuildStepList *>(parent())->firstOfType<MakeStep>();
auto ms = stepList()->firstOfType<MakeStep>();
return ms ? ms->effectiveMakeCommand().executable() : FilePath();
}