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.
This commit is contained in:
Frank Dana
2019-07-16 12:28:00 -04:00
committed by GitHub
parent 4a1d133da8
commit 47d69779b6

View File

@@ -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: