Wizards: Improve the UI for showing the list of platforms

A plain string like "Android Device Desktop" is hard to parse,
especially when there's unfortunate line wrapping.
Use a proper list.

Fixes: QTCREATORBUG-24288
Change-Id: I560ef5e14f0775ab233b1258b04a1c39414be51c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2020-07-15 14:29:35 +02:00
parent f01ed3e1a2
commit daf444a086

View File

@@ -459,9 +459,9 @@ void NewDialog::currentItemChanged(const QModelIndex &index)
desciption += tr("Platform independent") + QLatin1String("</b>");
else
desciption += tr("Supported Platforms")
+ QLatin1String("</b>: <tt>")
+ displayNamesForSupportedPlatforms.join(QLatin1Char(' '))
+ QLatin1String("</tt>");
+ QLatin1String("</b>: <ul>")
+ "<li>" + displayNamesForSupportedPlatforms.join("</li><li>") + "</li>"
+ QLatin1String("</ul>");
m_ui->templateDescription->setHtml(desciption);