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
This commit is contained in:
Laurent Montel 2020-01-17 20:44:24 +01:00
parent 1c60859999
commit 1e5966147d
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ public:
Svg *q;
QPointer<Theme> theme;
QHash<QString, QRectF> localRectCache;
QHash<QString, QSize> elementsWithSizeHints;
QMultiHash<QString, QSize> elementsWithSizeHints;
SharedSvgRenderer::Ptr renderer;
QString themePath;
QString path;

View File

@ -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);
}
}
}