From f0e08a2fd6f79c0fa34e7b879da60413c4e9b661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Mon, 14 Mar 2022 18:09:19 +0100 Subject: Remove outdated version checks Change-Id: Ida0c5d3ed25322c736617934aef9f3a8e4daf4c3 Reviewed-by: Eirik Aavitsland --- src/svg/qsvgtinydocument.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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 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 } } -- cgit v1.2.1