summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2022-03-14 18:09:19 +0100
committerRobert Löhning <robert.loehning@qt.io>2022-03-15 09:23:57 +0100
commitf0e08a2fd6f79c0fa34e7b879da60413c4e9b661 (patch)
treed2ad18c9a36de1742c0a2997e0f8512cb92f33ff /src
parent2a1fe8400fb97308fe7e3eb70997c118e388a7ec (diff)
downloadqtsvg-f0e08a2fd6f79c0fa34e7b879da60413c4e9b661.tar.gz
Remove outdated version checks
Change-Id: Ida0c5d3ed25322c736617934aef9f3a8e4daf4c3 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/svg/qsvgtinydocument.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/svg/qsvgtinydocument.cpp b/src/svg/qsvgtinydocument.cpp
index 8e7a32e..aea9d3c 100644
--- a/src/svg/qsvgtinydocument.cpp
+++ b/src/svg/qsvgtinydocument.cpp
@@ -454,10 +454,8 @@ void QSvgTinyDocument::mapSourceToTarget(QPainter *p, const QRectF &targetRect,
source = viewBox();
if (source != target && !qFuzzyIsNull(source.width()) && !qFuzzyIsNull(source.height())) {
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
if (m_implicitViewBox || !preserveAspectRatio()) {
// Code path used when no view box is set, or IgnoreAspectRatio requested
-#endif
QTransform transform;
transform.scale(target.width() / source.width(),
target.height() / source.height());
@@ -466,7 +464,6 @@ void QSvgTinyDocument::mapSourceToTarget(QPainter *p, const QRectF &targetRect,
target.y() - c2.y());
p->scale(target.width() / source.width(),
target.height() / source.height());
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
} else {
// Code path used when KeepAspectRatio is requested. This attempts to emulate the default values
// of the <preserveAspectRatio tag that's implicitly defined when <viewbox> is used.
@@ -485,7 +482,6 @@ void QSvgTinyDocument::mapSourceToTarget(QPainter *p, const QRectF &targetRect,
// Apply the view box translation if specified.
p->translate(-source.x(), -source.y());
}
-#endif
}
}