From 1e5966147de1fd2d7a6a830c49e0c7127df53c9b Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 17 Jan 2020 20:44:24 +0100 Subject: [PATCH] QHash::insertMulti is deprecated in qt5.15 => port to QMultiHash Summary: Port to QMultiHash Reviewers: apol Reviewed By: apol Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D26736 --- src/plasma/private/svg_p.h | 2 +- src/plasma/svg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plasma/private/svg_p.h b/src/plasma/private/svg_p.h index 9bfc48a8d..f3e417e90 100644 --- a/src/plasma/private/svg_p.h +++ b/src/plasma/private/svg_p.h @@ -103,7 +103,7 @@ public: Svg *q; QPointer theme; QHash localRectCache; - QHash elementsWithSizeHints; + QMultiHash elementsWithSizeHints; SharedSvgRenderer::Ptr renderer; QString themePath; QString path; diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 6f90d3d0a..a7b89e9b8 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -320,7 +320,7 @@ QPixmap SvgPrivate::findInCache(const QString &elementId, qreal ratio, const QSi match.capturedRef(2).toInt()); if (sizeHint.isValid()) { - elementsWithSizeHints.insertMulti(baseElementId, sizeHint); + elementsWithSizeHints.insert(baseElementId, sizeHint); } } }