aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickpainteditem
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-25 14:44:04 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-01 10:14:16 +0200
commit4a77e2593f281456d25c9b2dd5df400c3e588e4c (patch)
treea21a70166688d1a76f31bace9265e95c700cee05 /tests/auto/quick/qquickpainteditem
parentda68a8431a2cc0fdea7482750ad4e1abf3f7a85d (diff)
Mark overrides in tests, fix compiler warnings
Change-Id: If753558d911e50a73e351a93eed2e4df3e6592c7 Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickpainteditem')
-rw-r--r--tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp b/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
index 2661762669..ef43a13ba7 100644
--- a/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
+++ b/tests/auto/quick/qquickpainteditem/tst_qquickpainteditem.cpp
@@ -68,13 +68,13 @@ public:
{
}
- void paint(QPainter *painter)
+ void paint(QPainter *painter) override
{
++paintRequests;
clipRect = painter->clipBoundingRect();
}
#if QT_CONFIG(opengl)
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
+ QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override
{
paintNode = static_cast<QSGDefaultPainterNode *>(QQuickPaintedItem::updatePaintNode(oldNode, data));
return paintNode;