diff --git a/src/plugins/qtsupport/qtoptionspage.cpp b/src/plugins/qtsupport/qtoptionspage.cpp index f18724a8b56019c023cf9b8f058248e751f5c62d..cb5ee6f7cbe7462c25b767035d7e72334c95e7c8 100644 --- a/src/plugins/qtsupport/qtoptionspage.cpp +++ b/src/plugins/qtsupport/qtoptionspage.cpp @@ -370,6 +370,18 @@ void QtOptionsPageWidget::infoAnchorClicked(const QUrl &url) QDesktopServices::openUrl(url); } +static QString formatAbiHtmlList(const QList &abis) +{ + QString result = QStringLiteral(""); + return result; +} + QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const BaseQtVersion *version) { ValidityInfo info; @@ -386,12 +398,11 @@ QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const Ba } // Do we have tool chain issues? - QStringList missingToolChains; - int abiCount = 0; - foreach (const Abi &abi, version->qtAbis()) { + QList missingToolChains; + const QList qtAbis = version->qtAbis(); + for (const Abi &abi : qtAbis) { if (ToolChainManager::findToolChains(abi).isEmpty()) - missingToolChains.append(abi.toString()); - ++abiCount; + missingToolChains.append(abi); } bool useable = true; @@ -400,16 +411,18 @@ QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const Ba warnings << tr("Display Name is not unique."); if (!missingToolChains.isEmpty()) { - if (missingToolChains.count() == abiCount) { + if (missingToolChains.count() == qtAbis.size()) { // Yes, this Qt version can't be used at all! - info.message = tr("No compiler can produce code for this Qt version. Please define one or more compilers."); + info.message = + tr("No compiler can produce code for this Qt version." + " Please define one or more compilers for: %1").arg(formatAbiHtmlList(qtAbis)); info.icon = m_invalidVersionIcon; useable = false; } else { // Yes, some ABIs are unsupported warnings << tr("Not all possible target environments can be supported due to missing compilers."); - info.toolTip = tr("The following ABIs are currently not supported:
  • %1
") - .arg(missingToolChains.join(QLatin1String("
  • "))); + info.toolTip = tr("The following ABIs are currently not supported: %1") + .arg(formatAbiHtmlList(missingToolChains)); info.icon = m_warningVersionIcon; } }