summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/statemachine/eventtest.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-12-08 00:23:14 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2018-08-16 11:00:31 +0000
commit242ea38375534f529f155efa46593e2a42577455 (patch)
tree066840072a102161115a30d398cf67da7ddbee61 /src/corelib/doc/snippets/statemachine/eventtest.cpp
parent9b59a2ef973a067fb0c4a43396d1aca329b24f9c (diff)
doc: Add missing override and remove redundant virtual for snippets
Change-Id: I2395fd01b93c4ea364225e0cf1a5f59908b691d0 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/corelib/doc/snippets/statemachine/eventtest.cpp')
-rw-r--r--src/corelib/doc/snippets/statemachine/eventtest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/doc/snippets/statemachine/eventtest.cpp b/src/corelib/doc/snippets/statemachine/eventtest.cpp
index cecf26f2e7..d7d4ce0d21 100644
--- a/src/corelib/doc/snippets/statemachine/eventtest.cpp
+++ b/src/corelib/doc/snippets/statemachine/eventtest.cpp
@@ -58,7 +58,7 @@ public:
protected:
//![0]
- bool eventTest(QEvent *event)
+ bool eventTest(QEvent *event) override
{
if (event->type() == QEvent::Wrapped) {
QEvent *wrappedEvent = static_cast<QStateMachine::WrappedEvent *>(event)->event();
@@ -71,7 +71,7 @@ protected:
}
//![0]
- void onTransition(QEvent *event)
+ void onTransition(QEvent *event) override
{
}