From 75f76f7157af7c9785fdca0825375abc4169300e Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 18 Jun 2019 14:55:56 +0300 Subject: Revert "Fix rendering lines with Antialiasing render hint" This reverts commit d87ebea3be105e8e5f46e096af5109b9d2eb7e0a. The commit above causes significant slowdown on antialiased series drawing while the visual artifact it fixes isn't usually noticeable. Task-number: QTBUG-76271 Change-Id: I3a50d469482d67224028961f74859e0c0eeb822c Reviewed-by: Maurice Kalinowski --- src/charts/linechart/linechartitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/charts/linechart/linechartitem.cpp') diff --git a/src/charts/linechart/linechartitem.cpp b/src/charts/linechart/linechartitem.cpp index b96d263a..8ea5dbb0 100644 --- a/src/charts/linechart/linechartitem.cpp +++ b/src/charts/linechart/linechartitem.cpp @@ -406,9 +406,7 @@ void LineChartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opt painter->drawPath(m_linePath); } else { painter->setBrush(QBrush(Qt::NoBrush)); - if (m_linePen.style() != Qt::SolidLine - || painter->renderHints().testFlag(QPainter::Antialiasing) - || alwaysUsePath) { + if (m_linePen.style() != Qt::SolidLine || alwaysUsePath) { // If pen style is not solid line, always fall back to path painting // to ensure proper continuity of the pattern painter->drawPath(m_linePath); -- cgit v1.2.3