diff --git a/backgroundselector.h b/backgroundselector.h index bbf997efe0bef8e14b2310771d55e0202f44ba4c..1c2463fd1f0c913de2f2ef1daf340c4d3f39ac06 100644 --- a/backgroundselector.h +++ b/backgroundselector.h @@ -40,7 +40,7 @@ class BackgroundSelector : public QWidget { void useRandomBackgroundPicturesChanged(bool state); void previewBackgroundPicture(); protected: - void changeEvent(QEvent *e); + void changeEvent(QEvent *e) Q_DECL_OVERRIDE; void enableSettings(bool enable=true); private: Ui::KBounceBackgroundSelector *ui; diff --git a/board.h b/board.h index 0a0a439ca90ff3f61d2ca656e11ebb83bead550d..b387c69b8aa54ba6c9a20b8442f2c6ec1249e007 100644 --- a/board.h +++ b/board.h @@ -47,7 +47,7 @@ class KBounceBoard: public QGraphicsObject QPixmap applyWallsOn(QPixmap background) const; void resize( QSize& size ); - void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) {} + void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE {} void newLevel( int level ); void setPaused( bool ); @@ -62,7 +62,7 @@ class KBounceBoard: public QGraphicsObject void checkCollisions(); QPoint mapPosition( const QPointF& pos ) const; - QRectF boundingRect() const; + QRectF boundingRect() const Q_DECL_OVERRIDE; void setBallVelocity(qreal velocity); void setWallVelocity(qreal velocity); diff --git a/gamewidget.h b/gamewidget.h index a03f464507cc32a7a4ea483ebfc552963ad6db86..8ff6867ee4d3689623c9c80d5a00c4ece9be2a25 100644 --- a/gamewidget.h +++ b/gamewidget.h @@ -48,7 +48,7 @@ class KBounceGameWidget : public QGraphicsView KBounceGameWidget::State state() const { return m_state; } KBounceRenderer* renderer() { return &m_renderer; } - QSize minimumSizeHint() const; + QSize minimumSizeHint() const Q_DECL_OVERRIDE; public slots: void closeGame(); @@ -74,9 +74,9 @@ class KBounceGameWidget : public QGraphicsView void tick(); protected: - virtual void resizeEvent( QResizeEvent* event ); - virtual void mouseReleaseEvent( QMouseEvent* event ); - void focusOutEvent(QFocusEvent *event); + void resizeEvent( QResizeEvent* event ) Q_DECL_OVERRIDE; + void mouseReleaseEvent( QMouseEvent* event ) Q_DECL_OVERRIDE; + void focusOutEvent(QFocusEvent *event) Q_DECL_OVERRIDE; void closeLevel(); void newLevel(); void updateCursor(); diff --git a/mainwindow.h b/mainwindow.h index 33e389271bd0aae0119f53c61a237c68a3629da5..24f020034afab816fd71adbd9b04aa216b971031 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -58,8 +58,8 @@ class KBounceMainWindow : public KXmlGuiWindow void initXMLUI(); void highscore(); - void focusOutEvent( QFocusEvent * ); - void focusInEvent ( QFocusEvent * ); + void focusOutEvent( QFocusEvent * ) Q_DECL_OVERRIDE; + void focusInEvent ( QFocusEvent * ) Q_DECL_OVERRIDE; KBounceGameWidget* m_gameWidget;