From 6f98a32403012cb6b02fdc1d8ca85e0fb064057a Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Mon, 8 Nov 2021 20:20:39 +0300 Subject: [PATCH] merge bitcoin#16153: Add antialiasing to traffic graph widget --- src/qt/trafficgraphwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/trafficgraphwidget.cpp b/src/qt/trafficgraphwidget.cpp index 317cd48c61..6f5ab36033 100644 --- a/src/qt/trafficgraphwidget.cpp +++ b/src/qt/trafficgraphwidget.cpp @@ -125,6 +125,7 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *) const TrafficGraphData::SampleQueue& queue = trafficGraphData.getCurrentRangeQueueWithAverageBandwidth(); if(!queue.empty()) { + painter.setRenderHint(QPainter::Antialiasing); QPainterPath pIn; QColor lucentGreen = green; lucentGreen.setAlpha(128); @@ -142,6 +143,7 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *) painter.fillPath(pOut, lucentRed); painter.setPen(red); painter.drawPath(pOut); + painter.setRenderHint(QPainter::Antialiasing, false); } // draw text