forked from qt-creator/qt-creator
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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user