Skip to content
Permalink
Browse files

Merge pull request #6406 from borysiasty/master

[Plugin manager] Display available and installed version origins in tooltips
  • Loading branch information
borysiasty committed Feb 22, 2018
2 parents 2973e85 + 86a48e4 commit 6a8e423470acfa5634e5ef50a217c97c99b861cf
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/app/pluginmanager/qgspluginmanager.cpp
@@ -655,6 +655,9 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
" margin-left:98px;"
" padding-top:3px;"
" }"
" span.version {"
" cursor: pointer;"
" }"
"</style>";

if ( !metadata->value( QStringLiteral( "plugin_id" ) ).isEmpty() )
@@ -915,11 +918,17 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
{
QString ver = metadata->value( QStringLiteral( "version_installed" ) );
if ( ver == QLatin1String( "-1" ) ) ver = '?';
html += tr( "Installed version: %1 (in %2)<br/>" ).arg( ver, metadata->value( QStringLiteral( "library" ) ) );
html += QStringLiteral( "%1 <span class='version' title='%2 %3'> %4 </span><br/>" ).arg( tr( "Installed version:" ),
tr( "in" ),
metadata->value( QStringLiteral( "library" ) ),
ver );
}
if ( ! metadata->value( QStringLiteral( "version_available" ) ).isEmpty() )
{
html += tr( "Available version: %1 (in %2)<br/>" ).arg( metadata->value( QStringLiteral( "version_available" ) ), metadata->value( QStringLiteral( "zip_repository" ) ) );
html += QStringLiteral( "%1 <span class='version' title='%2 %3'> %4 </span><br/>" ).arg( tr( "Available version:" ),
tr( "in" ),
metadata->value( QStringLiteral( "zip_repository" ) ),
metadata->value( QStringLiteral( "version_available" ) ) );
}

if ( ! metadata->value( QStringLiteral( "changelog" ) ).isEmpty() )

0 comments on commit 6a8e423

Please sign in to comment.
You can’t perform that action at this time.