Commit 141d0d90 authored by Eike Ziller's avatar Eike Ziller

Plugin manager: Show current platform string in plugin details

Change-Id: Ia1fc03ae715daa9f0469f6b2859de932f8eeb562
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 21fb7eb4
......@@ -29,6 +29,8 @@
#include "plugindetailsview.h"
#include "ui_plugindetailsview.h"
#include "pluginmanager.h"
#include "pluginspec.h"
#include <QDir>
......@@ -86,7 +88,10 @@ void PluginDetailsView::update(PluginSpec *spec)
m_ui->copyright->setText(spec->copyright());
m_ui->license->setText(spec->license());
const QRegExp platforms = spec->platformSpecification();
m_ui->platforms->setText(platforms.isEmpty() ? tr("All") : platforms.pattern());
const QString pluginPlatformString = platforms.isEmpty() ? tr("All") : platforms.pattern();
const QString platformString = tr("%1 (current: \"%2\")").arg(pluginPlatformString,
PluginManager::platformName());
m_ui->platforms->setText(platformString);
QStringList depStrings;
foreach (const PluginDependency &dep, spec->dependencies()) {
QString depString = dep.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment