summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtexthtmlparser.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-13 17:19:26 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-14 10:25:47 +0200
commit8fdd400d99bf380660151c3d41c21b51cd492f30 (patch)
tree108e8f12f5f87f5cafd139cee2b6c2c7faeeaea7 /src/gui/text/qtexthtmlparser.cpp
parent61fced375a202dbf48ceb22153c2976d91ad989b (diff)
Don't flatten link color in QTextHtmlParser::declarationsForNode
It's still flattened in the next step, when the parser calls QTextHtmlParserNode::applyCssDeclarations, but this at least makes it clear where the problem is. Task-number: QTBUG-85567 Change-Id: I1ecc7d808c58297f40f6cf8de86dfa7035e167c9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/gui/text/qtexthtmlparser.cpp')
-rw-r--r--src/gui/text/qtexthtmlparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtexthtmlparser.cpp b/src/gui/text/qtexthtmlparser.cpp
index c27c521f00..3eb131b5c0 100644
--- a/src/gui/text/qtexthtmlparser.cpp
+++ b/src/gui/text/qtexthtmlparser.cpp
@@ -1932,8 +1932,8 @@ QList<QCss::Declaration> standardDeclarationForNode(const QTextHtmlParserNode &n
needsUnderline = true;
decl.d->property = QLatin1String("color");
decl.d->propertyId = QCss::Color;
- val.type = QCss::Value::Color;
- val.variant = QVariant(QGuiApplication::palette().link());
+ val.type = QCss::Value::Function;
+ val.variant = QStringList() << QLatin1String("palette") << QLatin1String("link");
decl.d->values = QList<QCss::Value> { val };
decl.d->inheritable = true;
decls << decl;