diff --git a/src/plugins/texteditor/refactoroverlay.cpp b/src/plugins/texteditor/refactoroverlay.cpp index a0c928858ca..030fd85eccc 100644 --- a/src/plugins/texteditor/refactoroverlay.cpp +++ b/src/plugins/texteditor/refactoroverlay.cpp @@ -71,10 +71,8 @@ void RefactorOverlay::paintMarker(const RefactorMarker& marker, QPainter *painte if (icon.isNull()) icon = m_icon; - const qreal devicePixelRatio = painter->device()->devicePixelRatio(); - const QSize proposedIconSize = - QSize(m_editor->fontMetrics().horizontalAdvance(QLatin1Char(' ')) + 3, - cursorRect.height()) * devicePixelRatio; + const QSize proposedIconSize + = QSize(m_editor->fontMetrics().horizontalAdvance(QLatin1Char(' ')) + 3, cursorRect.height()); const QSize actualIconSize = icon.actualSize(proposedIconSize); const int y = cursorRect.top() + ((cursorRect.height() - actualIconSize.height()) / 2);