From f5e25c50dbe0c85bf0b3c879fec58b6914e9ef23 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 16 Oct 2019 17:44:15 +0200 Subject: [PATCH] QbsProjectManager: Fix build BuildStepList: :allOfType() was newly used in 4.10 and removed in 4.11. Change-Id: I3129f4a8aa411547e018c88eec02df58f56285f9 Reviewed-by: hjk --- src/plugins/qbsprojectmanager/qbsproject.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp index 3ee40859a35..0b426bbca47 100644 --- a/src/plugins/qbsprojectmanager/qbsproject.cpp +++ b/src/plugins/qbsprojectmanager/qbsproject.cpp @@ -468,10 +468,12 @@ FilePath QbsProject::installRoot() return FilePath(); const auto dc = activeTarget()->activeDeployConfiguration(); if (dc) { - const QList qbsInstallSteps = dc->stepList()->allOfType(); - for (QbsInstallStep * const step : qbsInstallSteps) { - if (step->enabled()) - return FilePath::fromString(step->installRoot()); + const QList steps = dc->stepList()->steps(); + for (const BuildStep * const step : steps) { + if (!step->enabled()) + continue; + if (const auto qbsInstallStep = qobject_cast(step)) + return FilePath::fromString(qbsInstallStep->installRoot()); } } const auto * const bc