Explicitly mark experimental plugins as such in plugin overview

This makes the difference between "experimental" and "disabled" visible
in the UI.

Task-number: QTCREATORBUG-17368
Change-Id: I6a74d27dbad9d35f447fe5687fe26c4eee3a3808
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Eike Ziller
2016-12-13 11:10:26 +01:00
parent 09e071b480
commit 3ef8ebd436

View File

@@ -116,7 +116,10 @@ public:
{
switch (column) {
case NameColumn:
if (role == Qt::DisplayRole || role == SortRole)
if (role == Qt::DisplayRole)
return m_spec->isExperimental() ? PluginView::tr("%1 (experimental)").arg(m_spec->name())
: m_spec->name();
if (role == SortRole)
return m_spec->name();
if (role == Qt::ToolTipRole) {
QString toolTip;