aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp')
-rw-r--r--examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp b/examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp
index c929deba5a..2afe82048f 100644
--- a/examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp
+++ b/examples/quick/tutorials/extending/chapter4-customPropertyTypes/pieslice.cpp
@@ -60,7 +60,7 @@ void PieSlice::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);
}