Drop Qt5: TextEditor: Remove code below Qt 6.0.0

Change-Id: I483445a862699c89784ee8612fd2eaa14e65e21f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2022-07-25 09:45:23 +02:00
parent 60302debd7
commit 1697f604ed

View File

@@ -87,10 +87,7 @@ void RefactorOverlay::paintMarker(const RefactorMarker& marker, QPainter *painte
const QSize proposedIconSize = const QSize proposedIconSize =
QSize(m_editor->fontMetrics().horizontalAdvance(QLatin1Char(' ')) + 3, QSize(m_editor->fontMetrics().horizontalAdvance(QLatin1Char(' ')) + 3,
cursorRect.height()) * devicePixelRatio; cursorRect.height()) * devicePixelRatio;
QSize actualIconSize = icon.actualSize(proposedIconSize); const QSize actualIconSize = icon.actualSize(proposedIconSize);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
actualIconSize /= devicePixelRatio;
#endif // Qt < 6.0
const int y = cursorRect.top() + ((cursorRect.height() - actualIconSize.height()) / 2); const int y = cursorRect.top() + ((cursorRect.height() - actualIconSize.height()) / 2);
const int x = cursorRect.right(); const int x = cursorRect.right();