summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-01-13 22:46:01 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-20 19:20:07 +0000
commited31b6ea97aa94872ec30700384484d1fb8192ea (patch)
tree0a224b6d307b124c0f2213370a2b8afe28e20741
parenta10feac831952bb471afa98a4b963054a8b2f088 (diff)
downloadqtsvg-ed31b6ea97aa94872ec30700384484d1fb8192ea.tar.gz
Adjust QSvgStyleSelector to change of virtual interface in qtbase
Follows up on qtbase:cb27ed30f7bc58474eba991f837843eb76cbd339. Task-number: QTBUG-99642 Change-Id: I94addd4467ab51697adac1042bdb15912930b539 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 43fb6953fb940edfec358a2d1c01e05705712829) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/svg/qsvghandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 16b5319..63ea6ec 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -516,8 +516,9 @@ public:
QString name = nodeToName(n);
return QString::compare(name, nodeName, Qt::CaseInsensitive) == 0;
}
- QString attribute(NodePtr node, const QString &name) const override
+ QString attributeValue(NodePtr node, const QCss::AttributeSelector &asel) const override
{
+ const QString &name = asel.name;
QSvgNode *n = svgNode(node);
if ((!n->nodeId().isEmpty() && (name == QLatin1String("id") ||
name == QLatin1String("xml:id"))))