summaryrefslogtreecommitdiffstats
path: root/examples/widgets/animation/appchooser/main.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-11-23 02:02:53 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2016-11-25 22:36:21 +0000
commit011aeb131ed904d948b69d6444ff58cdbfd4990c (patch)
treeae7004ad54843af21f44414574e5af91dde3b908 /examples/widgets/animation/appchooser/main.cpp
parentf91bbd243890511c99a084a478e7abe96d334860 (diff)
Examples: Remove a redundant virtual specifier for overriders
It's a good practice to use override without virtual: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rh-override Change-Id: I5c2d73600e6c706424589c0487133c03a4ef3629 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/animation/appchooser/main.cpp')
-rw-r--r--examples/widgets/animation/appchooser/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/animation/appchooser/main.cpp b/examples/widgets/animation/appchooser/main.cpp
index c9821450c9..71c869f6a2 100644
--- a/examples/widgets/animation/appchooser/main.cpp
+++ b/examples/widgets/animation/appchooser/main.cpp
@@ -67,12 +67,12 @@ public:
painter->drawPixmap(QPointF(), p);
}
- virtual void mousePressEvent(QGraphicsSceneMouseEvent *) override
+ void mousePressEvent(QGraphicsSceneMouseEvent *) override
{
emit clicked();
}
- virtual void setGeometry(const QRectF &rect) override
+ void setGeometry(const QRectF &rect) override
{
QGraphicsWidget::setGeometry(rect);
@@ -98,7 +98,7 @@ public:
{
}
- virtual void resizeEvent(QResizeEvent *) override
+ void resizeEvent(QResizeEvent *) override
{
fitInView(sceneRect(), Qt::KeepAspectRatio);
}