mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
panels/information: Create pixmap with explicit devicePixelRatio
This commit is contained in:
parent
90770d305a
commit
add53b4472
|
@ -351,7 +351,7 @@ bool InformationPanelContent::gestureEvent(QGestureEvent *event)
|
||||||
void InformationPanelContent::showIcon(const KFileItem &item)
|
void InformationPanelContent::showIcon(const KFileItem &item)
|
||||||
{
|
{
|
||||||
m_outdatedPreviewTimer->stop();
|
m_outdatedPreviewTimer->stop();
|
||||||
QPixmap pixmap = QIcon::fromTheme(item.iconName()).pixmap(m_preview->height(), m_preview->width());
|
QPixmap pixmap = QIcon::fromTheme(item.iconName()).pixmap(m_preview->size(), devicePixelRatioF());
|
||||||
KIconLoader::global()->drawOverlays(item.overlays(), pixmap, KIconLoader::Desktop);
|
KIconLoader::global()->drawOverlays(item.overlays(), pixmap, KIconLoader::Desktop);
|
||||||
m_preview->setPixmap(pixmap);
|
m_preview->setPixmap(pixmap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue