Fixed display of widget for point details on charts on retina.
This commit is contained in:
parent
b9fa14139a
commit
01c2ade501
|
@ -162,6 +162,7 @@ PointDetailsWidget::PointDetailsWidget(
|
|||
_arrow = QImage(
|
||||
QSize(w + stroke, w * 2 + stroke) * style::DevicePixelRatio(),
|
||||
QImage::Format_ARGB32_Premultiplied);
|
||||
_arrow.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
_arrow.fill(Qt::transparent);
|
||||
{
|
||||
auto p = QPainter(&_arrow);
|
||||
|
@ -366,6 +367,7 @@ void PointDetailsWidget::paintEvent(QPaintEvent *e) {
|
|||
_cache = QImage(
|
||||
size() * style::DevicePixelRatio(),
|
||||
QImage::Format_ARGB32_Premultiplied);
|
||||
_cache.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
_cache.fill(Qt::transparent);
|
||||
|
||||
auto p = QPainter(&_cache);
|
||||
|
|
Loading…
Reference in New Issue