29 #include "ui_plugindetailsview.h"
32 #include <QtCore/QDir>
44 using namespace ExtensionSystem;
73 m_ui->name->setText(spec->
name());
74 m_ui->version->setText(spec->
version());
76 m_ui->vendor->setText(spec->
vendor());
77 const QString link = QString::fromLatin1(
"<a href=\"%1\">%1</a>").arg(spec->
url());
78 m_ui->url->setText(link);
79 m_ui->location->setText(QDir::toNativeSeparators(spec->
filePath()));
81 m_ui->copyright->setText(spec->
copyright());
82 m_ui->license->setText(spec->
license());
83 QStringList depStrings;
85 depStrings << QString(
"%1 (%2)").arg(dep.
name).arg(dep.
version);
87 m_ui->dependencies->addItems(depStrings);
QString copyright() const
void update(PluginSpec *spec)
PluginDetailsView(QWidget *parent=nullptr)
QList< PluginDependency > dependencies() const
QString compatVersion() const
Contains the information of the plugins xml description file and information about the plugin's curre...
Struct that contains the name and required compatible version number of a plugin's dependency...
QString description() const
Widget that displays the contents of a PluginSpec.