Commit 66e06ff4 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent 27e646f1
...@@ -40,7 +40,7 @@ class BackgroundSelector : public QWidget { ...@@ -40,7 +40,7 @@ class BackgroundSelector : public QWidget {
void useRandomBackgroundPicturesChanged(bool state); void useRandomBackgroundPicturesChanged(bool state);
void previewBackgroundPicture(); void previewBackgroundPicture();
protected: protected:
void changeEvent(QEvent *e); void changeEvent(QEvent *e) Q_DECL_OVERRIDE;
void enableSettings(bool enable=true); void enableSettings(bool enable=true);
private: private:
Ui::KBounceBackgroundSelector *ui; Ui::KBounceBackgroundSelector *ui;
......
...@@ -47,7 +47,7 @@ class KBounceBoard: public QGraphicsObject ...@@ -47,7 +47,7 @@ class KBounceBoard: public QGraphicsObject
QPixmap applyWallsOn(QPixmap background) const; QPixmap applyWallsOn(QPixmap background) const;
void resize( QSize& size ); void resize( QSize& size );
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) {} void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE {}
void newLevel( int level ); void newLevel( int level );
void setPaused( bool ); void setPaused( bool );
...@@ -62,7 +62,7 @@ class KBounceBoard: public QGraphicsObject ...@@ -62,7 +62,7 @@ class KBounceBoard: public QGraphicsObject
void checkCollisions(); void checkCollisions();
QPoint mapPosition( const QPointF& pos ) const; QPoint mapPosition( const QPointF& pos ) const;
QRectF boundingRect() const; QRectF boundingRect() const Q_DECL_OVERRIDE;
void setBallVelocity(qreal velocity); void setBallVelocity(qreal velocity);
void setWallVelocity(qreal velocity); void setWallVelocity(qreal velocity);
......
...@@ -48,7 +48,7 @@ class KBounceGameWidget : public QGraphicsView ...@@ -48,7 +48,7 @@ class KBounceGameWidget : public QGraphicsView
KBounceGameWidget::State state() const { return m_state; } KBounceGameWidget::State state() const { return m_state; }
KBounceRenderer* renderer() { return &m_renderer; } KBounceRenderer* renderer() { return &m_renderer; }
QSize minimumSizeHint() const; QSize minimumSizeHint() const Q_DECL_OVERRIDE;
public slots: public slots:
void closeGame(); void closeGame();
...@@ -74,9 +74,9 @@ class KBounceGameWidget : public QGraphicsView ...@@ -74,9 +74,9 @@ class KBounceGameWidget : public QGraphicsView
void tick(); void tick();
protected: protected:
virtual void resizeEvent( QResizeEvent* event ); void resizeEvent( QResizeEvent* event ) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent( QMouseEvent* event ); void mouseReleaseEvent( QMouseEvent* event ) Q_DECL_OVERRIDE;
void focusOutEvent(QFocusEvent *event); void focusOutEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
void closeLevel(); void closeLevel();
void newLevel(); void newLevel();
void updateCursor(); void updateCursor();
......
...@@ -58,8 +58,8 @@ class KBounceMainWindow : public KXmlGuiWindow ...@@ -58,8 +58,8 @@ class KBounceMainWindow : public KXmlGuiWindow
void initXMLUI(); void initXMLUI();
void highscore(); void highscore();
void focusOutEvent( QFocusEvent * ); void focusOutEvent( QFocusEvent * ) Q_DECL_OVERRIDE;
void focusInEvent ( QFocusEvent * ); void focusInEvent ( QFocusEvent * ) Q_DECL_OVERRIDE;
KBounceGameWidget* m_gameWidget; KBounceGameWidget* m_gameWidget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment