Commit 8422fbe4 authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

enable hidpi for information panel

BUG: 415734
parent e24200a6
......@@ -69,9 +69,13 @@ void DetailedGraphicalOverview::setBackgroundColor(QColor bgColor)
void DetailedGraphicalOverview::paintEvent(QPaintEvent*)
{
QRect rect(0, 0, width(), height());
qreal dpr = devicePixelRatioF();
qreal dprWidth = dpr*width();
qreal dprHeight = dpr*height();
QRect rect(0, 0, dprWidth, dprHeight);
QPixmap pm(width(), height());
QPixmap pm(dprWidth, dprHeight);
pm.setDevicePixelRatio(dpr);
QPainter p;
p.begin(&pm);
......
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