Commit e6017c40 authored by Friedemann Kleint's avatar Friedemann Kleint

QtOptionsPageWidget::validInformation(): Use ToolChainManager::toolChain()

Use a predicate to check whether any toolchain can be found instead
of searching through all of them.

Change-Id: I6d4417c548b37629dc43c11e313250c24777a5ca
Reviewed-by: Tobias Hunger's avatarTobias Hunger <>
parent 99dff90b
......@@ -389,8 +389,15 @@ QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const Ba
// Do we have tool chain issues?
QList<Abi> missingToolChains;
const QList<Abi> qtAbis = version->qtAbis();
for (const Abi &abi : qtAbis) {
if (ToolChainManager::findToolChains(abi).isEmpty())
const auto abiCompatePred = [&abi] (const ToolChain *tc)
return Utils::contains(tc->supportedAbis(),
[&abi](const Abi &sabi) { return sabi.isCompatibleWith(abi); });
if (!ToolChainManager::toolChain(abiCompatePred))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment