diff --git a/src/core/utils/misc.cpp b/src/core/utils/misc.cpp index ae4840ae2..fa0df81e4 100644 --- a/src/core/utils/misc.cpp +++ b/src/core/utils/misc.cpp @@ -467,6 +467,8 @@ QString Utils::Misc::parseHtmlLinks(const QString &raw_text) static QRegExp reNoScheme(""); result.replace(reNoScheme, ""); + // to preserve plain text formatting + result = "

" + result + "

"; return result; } diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index d4eab984c..1ef29e7f7 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(); @@ -363,7 +363,7 @@ void PropertiesWidget::loadDynamicData() { lbl_elapsed->setText(elapsed_txt); - lbl_connections->setText(QString::number(m_torrent->connectionsCount())); + lbl_connections->setText(QString::number(m_torrent->connectionsCount()) + " (" + tr("%1 max", "e.g. 10 max").arg(QString::number(m_torrent->connectionsLimit())) + ")"); label_eta_val->setText(Utils::Misc::userFriendlyDuration(m_torrent->eta())); // Update next announce time diff --git a/src/gui/properties/propertieswidget.ui b/src/gui/properties/propertieswidget.ui index 59276403d..55e899498 100644 --- a/src/gui/properties/propertieswidget.ui +++ b/src/gui/properties/propertieswidget.ui @@ -98,6 +98,9 @@ + + Qt::PlainText + Qt::AlignLeading @@ -138,7 +141,7 @@ - + 0 0 @@ -152,6 +155,9 @@ + + Qt::PlainText + Qt::AlignLeading @@ -205,6 +211,9 @@ + + Qt::PlainText + @@ -234,6 +243,9 @@ + + Qt::PlainText + @@ -263,6 +275,9 @@ + + Qt::PlainText + @@ -292,6 +307,9 @@ + + Qt::PlainText + @@ -321,6 +339,9 @@ + + Qt::PlainText + @@ -350,6 +371,9 @@ + + Qt::PlainText + @@ -379,6 +403,9 @@ + + Qt::PlainText + @@ -408,6 +435,9 @@ + + Qt::PlainText + @@ -437,6 +467,9 @@ + + Qt::PlainText + @@ -466,6 +499,9 @@ + + Qt::PlainText + @@ -495,6 +531,9 @@ + + Qt::PlainText + @@ -524,6 +563,9 @@ + + Qt::PlainText + @@ -553,6 +595,9 @@ + + Qt::PlainText + @@ -582,6 +627,9 @@ + + Qt::PlainText + @@ -611,6 +659,9 @@ + + Qt::PlainText + @@ -655,6 +706,9 @@ + + Qt::PlainText + @@ -684,6 +738,41 @@ + + Qt::PlainText + + + + + + + + 0 + 0 + + + + Created By: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + + + Qt::PlainText + @@ -713,6 +802,9 @@ + + Qt::PlainText + @@ -742,9 +834,12 @@ + + Qt::PlainText + - + @@ -760,7 +855,7 @@ - + @@ -771,38 +866,12 @@ - - - - - - - 0 - 0 - - - - Created By: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + Qt::PlainText - - - - - 0 - 0 - - - - - - - - + @@ -818,7 +887,7 @@ - + @@ -829,12 +898,15 @@ + + Qt::PlainText + Qt::TextSelectableByMouse - + @@ -846,11 +918,11 @@ Save Path: - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - + @@ -861,12 +933,21 @@ + + Qt::PlainText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + Qt::TextSelectableByMouse - + @@ -882,18 +963,30 @@ - - + + 0 0 + + Qt::RichText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + true - + + Qt::TextBrowserInteraction + + true