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

Use Q_DECLARE_OVERRIDE

parent 27e646f1
......@@ -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;
......
......@@ -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);
......
......@@ -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();
......
......@@ -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;
......
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