Commit 2c7902cc authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Link the vendor url in the plugin details dialog.

Asked-for-by and Reviewed-By: Alessandro Portale
parent b17fe748
......@@ -75,7 +75,8 @@ void PluginDetailsView::update(PluginSpec *spec)
m_ui->version->setText(spec->version());
m_ui->compatVersion->setText(spec->compatVersion());
m_ui->vendor->setText(spec->vendor());
m_ui->url->setText(spec->url());
const QString link = QString::fromLatin1("<a href=\"%1\">%1</a>").arg(spec->url());
m_ui->url->setText(link);
m_ui->location->setText(QDir::toNativeSeparators(spec->filePath()));
m_ui->description->setText(spec->description());
m_ui->copyright->setText(spec->copyright());
......
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ExtensionSystem::Internal::PluginDetailsView</class>
<widget class="QWidget" name="ExtensionSystem::Internal::PluginDetailsView" >
<property name="geometry" >
<widget class="QWidget" name="ExtensionSystem::Internal::PluginDetailsView">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
......@@ -9,124 +10,114 @@
<height>505</height>
</rect>
</property>
<layout class="QGridLayout" >
<property name="leftMargin" >
<layout class="QGridLayout">
<property name="margin">
<number>2</number>
</property>
<property name="topMargin" >
<number>2</number>
</property>
<property name="rightMargin" >
<number>2</number>
</property>
<property name="bottomMargin" >
<number>2</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Name:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="name" >
</widget>
<item row="0" column="1">
<widget class="QLabel" name="name"/>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Version:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="version" >
</widget>
<item row="1" column="1">
<widget class="QLabel" name="version"/>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Compatibility Version:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLabel" name="compatVersion" >
</widget>
<item row="2" column="1">
<widget class="QLabel" name="compatVersion"/>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Vendor:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QLabel" name="vendor" >
</widget>
<item row="3" column="1">
<widget class="QLabel" name="vendor"/>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label_6" >
<property name="text" >
<item row="4" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Url:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QLabel" name="url" >
<item row="4" column="1">
<widget class="QLabel" name="url">
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<item row="5" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Location:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="5" column="1" >
<widget class="QLabel" name="location" >
<property name="wordWrap" >
<item row="5" column="1">
<widget class="QLabel" name="location">
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="6" column="0" >
<layout class="QVBoxLayout" >
<item row="6" column="0">
<layout class="QVBoxLayout">
<item>
<widget class="QLabel" name="label_8" >
<property name="text" >
<widget class="QLabel" name="label_8">
<property name="text">
<string>Description:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
......@@ -136,48 +127,47 @@
</item>
</layout>
</item>
<item row="6" column="1" >
<widget class="QTextEdit" name="description" >
<property name="tabChangesFocus" >
<item row="6" column="1">
<widget class="QTextEdit" name="description">
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="readOnly" >
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="7" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<item row="7" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Copyright:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="7" column="1" >
<widget class="QLabel" name="copyright" >
</widget>
<item row="7" column="1">
<widget class="QLabel" name="copyright"/>
</item>
<item row="8" column="0" >
<layout class="QVBoxLayout" >
<item row="8" column="0">
<layout class="QVBoxLayout">
<item>
<widget class="QLabel" name="label_9" >
<property name="text" >
<widget class="QLabel" name="label_9">
<property name="text">
<string>License:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>17</width>
<height>13</height>
......@@ -187,34 +177,34 @@
</item>
</layout>
</item>
<item row="8" column="1" >
<widget class="QTextEdit" name="license" >
<property name="tabChangesFocus" >
<item row="8" column="1">
<widget class="QTextEdit" name="license">
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="readOnly" >
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="9" column="0" >
<layout class="QVBoxLayout" >
<item row="9" column="0">
<layout class="QVBoxLayout">
<item>
<widget class="QLabel" name="label_10" >
<property name="text" >
<widget class="QLabel" name="label_10">
<property name="text">
<string>Dependencies:</string>
</property>
<property name="alignment" >
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
......@@ -224,8 +214,8 @@
</item>
</layout>
</item>
<item row="9" column="1" >
<widget class="QListWidget" name="dependencies" />
<item row="9" column="1">
<widget class="QListWidget" name="dependencies"/>
</item>
</layout>
</widget>
......
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