aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py')
-rw-r--r--examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
index 90e6bb45c..473b7c15f 100644
--- a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
+++ b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
@@ -70,7 +70,7 @@ class PieSlice (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);
class PieChart (QQuickPaintedItem):
def __init__(self, parent = None):