Skip to content

Commit

Permalink
Use Q_DECL_OVERRIDE
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel committed Jun 1, 2017
1 parent 0dd4381 commit f278811
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/blinken.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ Q_OBJECT
blinken();
~blinken();

virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;

protected:
void paintEvent(QPaintEvent *);
void mouseMoveEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *e);
void keyPressEvent(QKeyEvent *e);
void keyReleaseEvent(QKeyEvent *e);
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent *e) Q_DECL_OVERRIDE;

private slots:
void checkHS();
Expand Down
2 changes: 1 addition & 1 deletion src/highscoredialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class scoresWidget : public QWidget
QSize calcSize();

protected:
void paintEvent(QPaintEvent *);
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;

private:
const QList< QPair<int, QString> > m_scores;
Expand Down

0 comments on commit f278811

Please sign in to comment.