diff --git a/src/libs/extensionsystem/plugindetailsview.cpp b/src/libs/extensionsystem/plugindetailsview.cpp index e9e90f6e82d5a26c3e559062ac0fb40a7998231c..b8b7425330d173eee46edd4d5dad8497dcb80cbc 100644 --- a/src/libs/extensionsystem/plugindetailsview.cpp +++ b/src/libs/extensionsystem/plugindetailsview.cpp @@ -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()); diff --git a/src/libs/extensionsystem/plugindetailsview.ui b/src/libs/extensionsystem/plugindetailsview.ui index e22d2617ac11f626a6d3b00f4978d711e94adc43..10d6e987f354488c7661b33fb7b24904ad5d70ab 100644 --- a/src/libs/extensionsystem/plugindetailsview.ui +++ b/src/libs/extensionsystem/plugindetailsview.ui @@ -1,7 +1,8 @@ -<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>