aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp')
-rw-r--r--examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp b/examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp
index d2a927c01a..52b409aa22 100644
--- a/examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp
+++ b/examples/quick/tutorials/extending/chapter6-plugins/pieslice.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -80,7 +80,7 @@ void PieSlice::paint(QPainter *painter)
{
QPen pen(m_color, 2);
painter->setPen(pen);
- painter->setRenderHints(QPainter::HighQualityAntialiasing, true);
- painter->drawPie(boundingRect(), m_fromAngle * 16, m_angleSpan * 16);
+ painter->setRenderHints(QPainter::Antialiasing, true);
+ painter->drawPie(boundingRect().adjusted(1, 1, -1, -1), m_fromAngle * 16, m_angleSpan * 16);
}