diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-07-25 09:45:23 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-08-01 14:47:02 +0000 |
commit | 1697f604ed3d88b69ac5f357b34e9d5eaf95c15c (patch) | |
tree | 901a8aa8e81a50efea282d27f178f019393bf5c3 /src/plugins/texteditor/refactoroverlay.cpp | |
parent | 60302debd7f571d63c52bf75a1279dca14575869 (diff) |
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>
Diffstat (limited to 'src/plugins/texteditor/refactoroverlay.cpp')
-rw-r--r-- | src/plugins/texteditor/refactoroverlay.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/texteditor/refactoroverlay.cpp b/src/plugins/texteditor/refactoroverlay.cpp index 5c1c56ad7e..d0ca663ec4 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(); |