diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-06-18 14:55:56 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2019-06-18 14:57:31 +0300 |
commit | 75f76f7157af7c9785fdca0825375abc4169300e (patch) | |
tree | 8fa0e852ea0d14023481ffbf345bb1787d1dc8a1 | |
parent | 1e7a6c8f7818c39338f5addb8bd7b5f4b8de7322 (diff) |
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 <maurice.kalinowski@qt.io>
-rw-r--r-- | src/charts/linechart/linechartitem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); |