[Plugin manager] Add a label for built-in plugins explaining they aren't uninstallable.

This commit is contained in:
Borys Jurgiel 2017-10-23 23:47:33 +02:00
parent ea0e09b322
commit 87d087bbfd

View File

@ -810,6 +810,13 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
"</table>" ).arg( tr( "This plugin is trusted" ) );
}
if ( metadata->value( QStringLiteral( "readonly" ) ) == QLatin1String( "true" ) )
{
html += QString( "<table bgcolor=\"#90EEE9\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">"
" <tr><td width=\"100%\" style=\"color:#660000\"><b>%1</b></td></tr>"
"</table>" ).arg( tr( "This is a system plugin, so you can't uninstall it" ) );
}
// Now the metadata
html += QLatin1String( "<table cellspacing=\"4\" width=\"100%\"><tr><td>" );