mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 17:02:04 +08:00
cabana: set pen width in createSeries (#27288)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user