diff options
Diffstat (limited to 'examples/quick/tutorials/extending/chapter1-basics/piechart.cpp')
-rw-r--r-- | examples/quick/tutorials/extending/chapter1-basics/piechart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/tutorials/extending/chapter1-basics/piechart.cpp b/examples/quick/tutorials/extending/chapter1-basics/piechart.cpp index 79c06d0720..fa005781d8 100644 --- a/examples/quick/tutorials/extending/chapter1-basics/piechart.cpp +++ b/examples/quick/tutorials/extending/chapter1-basics/piechart.cpp @@ -72,8 +72,8 @@ void PieChart::paint(QPainter *painter) { QPen pen(m_color, 2); painter->setPen(pen); - painter->setRenderHints(QPainter::HighQualityAntialiasing, true); - painter->drawPie(boundingRect(), 90 * 16, 290 * 16); + painter->setRenderHints(QPainter::Antialiasing, true); + painter->drawPie(boundingRect().adjusted(1, 1, -1, -1), 90 * 16, 290 * 16); } //![1] |