[trojita] src/Gui: GUI: List-Post headers should be clickable

Jan Kundrát null at kde.org
Wed Oct 25 13:12:53 UTC 2017


Git commit 6ad0506e90cfb2fe18eb471e8bfdf32730ca8398 by Jan Kundrát.
Committed on 24/10/2017 at 17:50.
Pushed by gerrit into branch 'master'.

GUI: List-Post headers should be clickable

The global handler is fine, Trojita sets up a mailto: URL scheme
interceptor. At least on my Qt 5.9 it works.

Change-Id: I5f13408a88664884e16f3092b137777117dfd9b1

M  +1    -0    src/Gui/EnvelopeView.cpp

https://commits.kde.org/trojita/6ad0506e90cfb2fe18eb471e8bfdf32730ca8398

diff --git a/src/Gui/EnvelopeView.cpp b/src/Gui/EnvelopeView.cpp
index 18504563..96e7df97 100644
--- a/src/Gui/EnvelopeView.cpp
+++ b/src/Gui/EnvelopeView.cpp
@@ -170,6 +170,7 @@ void EnvelopeView::setMessage(const QModelIndex &index)
         }
         auto lbl = new QLabel(QString(QLatin1String("<html> %1</html>")).arg(buf.join(tr(", "))));
         SET_LABEL_OPTIONS(lbl)
+        lbl->setOpenExternalLinks(true);
         if (elided)
             connect(lbl, &QLabel::linkHovered, lbl, &QLabel::setToolTip);
         ADD_ROW(tr("Mailing List"), lbl)



More information about the kde-doc-english mailing list