Remove one Qt 5.15 ifdef
GIT_SILENT
This commit is contained in:
parent
4fdaec615b
commit
e0b7aa680c
@ -710,15 +710,8 @@ QRectF SvgPrivate::findAndCacheElementRect(const QString &elementId)
|
|||||||
createRenderer();
|
createRenderer();
|
||||||
|
|
||||||
// This code will usually never be run because createRenderer already caches all the boundingRect in the elements in the svg
|
// This code will usually never be run because createRenderer already caches all the boundingRect in the elements in the svg
|
||||||
QRectF elementRect = renderer->elementExists(elementId) ?
|
QRectF elementRect =
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
renderer->elementExists(elementId) ? renderer->transformForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() : QRectF();
|
||||||
renderer->transformForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect()
|
|
||||||
:
|
|
||||||
#else
|
|
||||||
renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect()
|
|
||||||
:
|
|
||||||
#endif
|
|
||||||
QRectF();
|
|
||||||
naturalSize = renderer->defaultSize() * scaleFactor;
|
naturalSize = renderer->defaultSize() * scaleFactor;
|
||||||
|
|
||||||
qreal dx = size.width() / renderer->defaultSize().width();
|
qreal dx = size.width() / renderer->defaultSize().width();
|
||||||
|
Loading…
Reference in New Issue
Block a user