diff options
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter6-plugins')
| -rw-r--r-- | examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/piechart.py | 2 | ||||
| -rw-r--r-- | examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/pieslice.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/piechart.py b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/piechart.py index b721a7130..6a7e80ccb 100644 --- a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/piechart.py +++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/piechart.py @@ -19,7 +19,7 @@ class PieChart(QQuickItem): self._slices = [] self._name = '' - @Property(str) + @Property(str, final=True) def name(self): return self._name diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/pieslice.py b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/pieslice.py index 7945eff12..67242a967 100644 --- a/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/pieslice.py +++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/Charts/pieslice.py @@ -20,7 +20,7 @@ class PieSlice(QQuickPaintedItem): self._from_angle = 0 self._angle_span = 0 - @Property(QColor) + @Property(QColor, final=True) def color(self): return self._color @@ -28,7 +28,7 @@ class PieSlice(QQuickPaintedItem): def color(self, color): self._color = QColor(color) - @Property(int) + @Property(int, final=True) def fromAngle(self): return self._from_angle @@ -36,7 +36,7 @@ class PieSlice(QQuickPaintedItem): def fromAngle(self, fromAngle): self._from_angle = fromAngle - @Property(int) + @Property(int, final=True) def angleSpan(self): return self._angle_span |
