Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/previewwidget.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
74 | QPixmap PreviewWidget::updatePixmapCache() | 74 | QPixmap PreviewWidget::updatePixmapCache() | ||
75 | { | 75 | { | ||
76 | QPixmap pixmap(m_internalPreview ->sizeHint() * m_scale); | 76 | QPixmap pixmap(m_internalPreview ->sizeHint() * m_scale); | ||
77 | pixmap.setDevicePixelRatio(m_scale); | 77 | pixmap.setDevicePixelRatio(m_scale); | ||
78 | QPainter p(&pixmap); | 78 | QPainter p(&pixmap); | ||
79 | m_internalPreview ->render(&p); | 79 | m_internalPreview ->render(&p); | ||
80 | 80 | | |||
81 | //render back at whatever the native DPR of the KCM is | 81 | //render back at whatever the native DPR of the KCM is | ||
82 | pixmap.setDevicePixelRatio(devicePixelRatio()); | 82 | pixmap.setDevicePixelRatio(devicePixelRatioF()); | ||
83 | 83 | | |||
84 | return pixmap; | 84 | return pixmap; | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | 87 | |