From 34d2bdadc0fb6aac76d6cfe868341ed38c5882d7 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 Conflicts: src/gui/properties/propertieswidget.cpp --- 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 6f7179b72..43448d245 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -283,7 +283,7 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle& _h) label_total_size_val->setText(misc::friendlyUnit(h.total_size())); // Comment - comment_text->setHtml(misc::parseHtmlLinks(h.comment())); + comment_text->setText(misc::parseHtmlLinks(h.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