forked from qt-creator/qt-creator
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:
@@ -193,7 +193,7 @@ bool AndroidDeployQtStep::init()
|
||||
<< "Min target API" << minTargetApi;
|
||||
|
||||
// Try to re-use user-provided information from an earlier step of the same type.
|
||||
auto bsl = qobject_cast<BuildStepList *>(parent());
|
||||
BuildStepList *bsl = stepList();
|
||||
QTC_ASSERT(bsl, return false);
|
||||
auto androidDeployQtStep = bsl->firstOfType<AndroidDeployQtStep>();
|
||||
QTC_ASSERT(androidDeployQtStep, return false);
|
||||
|
||||
Reference in New Issue
Block a user