diff options
Diffstat (limited to 'examples/declarative/extending/chapter2-methods/methods.py')
-rw-r--r-- | examples/declarative/extending/chapter2-methods/methods.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/extending/chapter2-methods/methods.py b/examples/declarative/extending/chapter2-methods/methods.py index 25543818e..d6e74f5f0 100644 --- a/examples/declarative/extending/chapter2-methods/methods.py +++ b/examples/declarative/extending/chapter2-methods/methods.py @@ -62,7 +62,7 @@ class PieChart (QQuickPaintedItem): pen = QPen(self.color, 2) painter.setPen(pen); painter.setRenderHints(QPainter.Antialiasing, True); - painter.drawPie(self.boundingRect(), 90 * 16, 290 * 16); + painter.drawPie(self.boundingRect().adjusted(1,1,-1,-1), 90 * 16, 290 * 16); def getColor(self): return self._color |