Use anti-aliasing when rendering histogram bar

This commit is contained in:
baldurk
2017-05-29 16:07:56 +01:00
parent d170724bdb
commit da6560f9aa
+3
View File
@@ -226,6 +226,9 @@ void RangeHistogram::leaveEvent(QEvent *e)
void RangeHistogram::paintEvent(QPaintEvent *e)
{
QPainter p(this);
p.setRenderHint(QPainter::Antialiasing);
const QBrush blackBrush(QColor(0, 0, 0));
const QBrush grayBrush(QColor(180, 180, 180));
const QBrush redBrush(QColor(60, 0, 0));