From 1697f604ed3d88b69ac5f357b34e9d5eaf95c15c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 25 Jul 2022 09:45:23 +0200 Subject: [PATCH] Drop Qt5: TextEditor: Remove code below Qt 6.0.0 Change-Id: I483445a862699c89784ee8612fd2eaa14e65e21f Reviewed-by: David Schulz Reviewed-by: --- src/plugins/texteditor/refactoroverlay.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/texteditor/refactoroverlay.cpp b/src/plugins/texteditor/refactoroverlay.cpp index 5c1c56ad7e6..d0ca663ec47 100644 --- a/src/plugins/texteditor/refactoroverlay.cpp +++ b/src/plugins/texteditor/refactoroverlay.cpp @@ -87,10 +87,7 @@ void RefactorOverlay::paintMarker(const RefactorMarker& marker, QPainter *painte const QSize proposedIconSize = QSize(m_editor->fontMetrics().horizontalAdvance(QLatin1Char(' ')) + 3, cursorRect.height()) * devicePixelRatio; - QSize actualIconSize = icon.actualSize(proposedIconSize); -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) - actualIconSize /= devicePixelRatio; -#endif // Qt < 6.0 + const QSize actualIconSize = icon.actualSize(proposedIconSize); const int y = cursorRect.top() + ((cursorRect.height() - actualIconSize.height()) / 2); const int x = cursorRect.right();