aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-06-30 11:31:03 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-30 14:17:01 +0200
commit213b8908993ce39587ca7e8c90ede4c21c2af554 (patch)
tree62e5023089e274e5d3fa19b0276d7fe8f21fc1b3 /examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes
parentb200fbe213adf2859ddebefac0be60b04389a8a6 (diff)
Add missing "override" keywords
Our examples should follow best practices. Change-Id: Ice90a818ae46e921b421e8d297806d8f7200294b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes')
-rw-r--r--examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h
index 9f8a66734b..af8546f00d 100644
--- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h
+++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/pieslice.h
@@ -66,7 +66,7 @@ public:
QColor color() const;
void setColor(const QColor &color);
- void paint(QPainter *painter);
+ void paint(QPainter *painter) override;
private:
QColor m_color;