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>bb10
parent
61fced375a
commit
8fdd400d99
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue