mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
[KStandardItemListWidget] Don't paint overlay outside view for devicePixelRatio > 1
Translate the position by devicePixelRatio REVIEW: 129084
This commit is contained in:
parent
7a4d1e6199
commit
bdcf12026d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue