From 50b3a243716087daea9f753f68687294812a614c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 21 Jun 2015 13:44:06 +0800 Subject: [PATCH] Change Comment field from QTextBrowser to QLabel --- src/gui/properties/propertieswidget.cpp | 2 +- src/gui/properties/propertieswidget.ui | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index d4eab984c..3c19601e7 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -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(); diff --git a/src/gui/properties/propertieswidget.ui b/src/gui/properties/propertieswidget.ui index 696e8662b..0a001e16c 100644 --- a/src/gui/properties/propertieswidget.ui +++ b/src/gui/properties/propertieswidget.ui @@ -883,17 +883,26 @@ - + 0 0 + + Qt::RichText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + true - + + Qt::TextBrowserInteraction + + true