Commit bdcf1202 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[KStandardItemListWidget] Don't paint overlay outside view for devicePixelRatio > 1

Translate the position by devicePixelRatio

REVIEW: 129084
parent 7a4d1e61
......@@ -998,7 +998,7 @@ void KStandardItemListWidget::updatePixmapCache()
if (!m_overlay.isNull()) {
QPainter painter(&m_pixmap);
painter.drawPixmap(0, m_pixmap.height() - m_overlay.height(), m_overlay);
painter.drawPixmap(0, (m_pixmap.height() - m_overlay.height()) / m_pixmap.devicePixelRatio(), m_overlay);
}
int scaledIconSize = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment