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