summaryrefslogtreecommitdiff
path: root/debian/patches/0203-qtexthtmlparser-link-color.diff
blob: 54b6dcaab669db2d1fc13bf3d65b1a8b933e8808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
qt-bugs@ issue : N190509
Trolltech task ID : 190904 (Status: closed; Version fix: 4.5.0)
applied: no
author: Rafael Fernández López <ereslibre@kde.org>

Links are assigned a foreground color according to the system current color scheme.

--- a/src/gui/text/qtexthtmlparser.cpp
+++ b/src/gui/text/qtexthtmlparser.cpp
@@ -1056,7 +1056,7 @@
                     && !attributes.at(i + 1).isEmpty()) {
                     hasHref = true;
                     charFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
-                    charFormat.setForeground(Qt::blue);
+                    charFormat.setForeground(QApplication::palette().link());
                 }
             }