cabana: set pen width in createSeries (#27288)

old-commit-hash: 409c1c9c65
beeps
Dean Lee 2 years ago committed by GitHub
parent 91b1f88007
commit 41500839a2
  1. 4
      tools/cabana/chartswidget.cc

@ -789,6 +789,10 @@ QXYSeries *ChartView::createSeries(QAbstractSeries::SeriesType type, QColor colo
// are drawn instead of the graphs on MacOS. Re-enable OpenGL when fixed
#ifndef __APPLE__
series->setUseOpenGL(true);
// Qt doesn't properly apply device pixel ratio in OpenGL mode
QPen pen = series->pen();
pen.setWidth(2.0 * qApp->devicePixelRatio());
series->setPen(pen);
#endif
return series;
}

Loading…
Cancel
Save