Commit a44522fb authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent 12583981
......@@ -49,8 +49,8 @@ public:
KGameRenderer *renderer() const;
virtual QRectF boundingRect() const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
QRectF boundingRect() const Q_DECL_OVERRIDE;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) Q_DECL_OVERRIDE;
public Q_SLOTS:
void setPaused(bool paused);
Q_SIGNALS:
......
......@@ -49,9 +49,9 @@ Q_SIGNALS:
void clicked();
void dragged(const QPoint &direction);
protected:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *);
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *);
void mousePressEvent(QGraphicsSceneMouseEvent *) Q_DECL_OVERRIDE;
void mouseMoveEvent(QGraphicsSceneMouseEvent *) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QGraphicsSceneMouseEvent *) Q_DECL_OVERRIDE;
private:
KDiamond::Color m_color;
bool m_mouseDown;
......
......@@ -65,7 +65,7 @@ Q_SIGNALS:
void pointsChanged(int points);
void leftTimeChanged(int seconds);
protected:
virtual void timerEvent(QTimerEvent *event);
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
private:
GameStatePrivate *p;
};
......
......@@ -62,7 +62,7 @@ Q_SIGNALS:
void numberMoves(int moves);
void pendingAnimationsFinished();
protected:
virtual void timerEvent(QTimerEvent *event);
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
private:
QList<QPoint> findCompletedRows();
void getMoves();
......
......@@ -31,8 +31,8 @@ public:
void setScene(QGraphicsScene *scene);
protected:
virtual void resizeEvent(QResizeEvent *event);
virtual void wheelEvent(QWheelEvent *event);
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
};
}
......
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