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:
parent
1c60859999
commit
1e5966147d
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user