Browse Source

Change Comment field from QTextBrowser to QLabel

adaptive-webui-19844
Chocobo1 10 years ago
parent
commit
50b3a24371
  1. 2
      src/gui/properties/propertieswidget.cpp
  2. 13
      src/gui/properties/propertieswidget.ui

2
src/gui/properties/propertieswidget.cpp

@ -280,7 +280,7 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent @@ -280,7 +280,7 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent
label_total_size_val->setText(Utils::Misc::friendlyUnit(m_torrent->totalSize()));
// Comment
comment_text->setHtml(Utils::Misc::parseHtmlLinks(m_torrent->comment()));
comment_text->setText(Utils::Misc::parseHtmlLinks(m_torrent->comment()));
// URL seeds
loadUrlSeeds();

13
src/gui/properties/propertieswidget.ui

@ -883,17 +883,26 @@ @@ -883,17 +883,26 @@
</widget>
</item>
<item row="4" column="1" colspan="5">
<widget class="QTextBrowser" name="comment_text">
<widget class="QLabel" name="comment_text">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="openLinks">
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
<property name="openLinks" stdset="0">
<bool>true</bool>
</property>
</widget>

Loading…
Cancel
Save