From 47d69779b60bf85da34485b0e33589f389fd44a4 Mon Sep 17 00:00:00 2001 From: Frank Dana Date: Tue, 16 Jul 2019 12:28:00 -0400 Subject: [PATCH] Fix override syntax Overrides go at the end of the declaration. Qt also has the `Q_DECL_OVERRIDE` preprocessor define, which expands to `override` only when building the code using C++11 or higher. --- include/Qt/PlayerDemo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Qt/PlayerDemo.h b/include/Qt/PlayerDemo.h index c5a49377..cfed78bd 100644 --- a/include/Qt/PlayerDemo.h +++ b/include/Qt/PlayerDemo.h @@ -57,7 +57,7 @@ public: ~PlayerDemo(); protected: - override void keyPressEvent(QKeyEvent *event); + void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE; void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; private slots: