Don't use deprecated QPainter option

Warning from compiler:
speedplotview.cpp:342:63: warning: ‘QPainter::HighQualityAntialiasing’ is deprecated: Use Antialiasing instead [-Wdeprecated-declarations]
This commit is contained in:
Chocobo1 2020-05-16 21:09:06 +08:00
parent 7c8846fc53
commit 21e1c33d15
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -339,7 +339,7 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
}
// Set antialiasing for graphs
painter.setRenderHints(QPainter::Antialiasing | QPainter::HighQualityAntialiasing);
painter.setRenderHints(QPainter::Antialiasing);
// draw graphs
rect.adjust(3, 0, 0, 0); // Need, else graphs cross left gridline