Commit 415cbb94 authored by Laurent Montel's avatar Laurent Montel 😁

USe Q_DECL_OVERRIDE

parent 7baa4221
......@@ -128,8 +128,8 @@ protected:
//event handlers
//void mousePressEvent (QGraphicsSceneMouseEvent* mouseEvent);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent) Q_DECL_OVERRIDE;
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent) Q_DECL_OVERRIDE;
signals:
///Emits the index of the closet (undrawn) line when a click is detected
......
......@@ -36,7 +36,7 @@ public:
/**
* Asks the scene through ( qobject_cast<GameBoardScene*>(scene()) ) for the smallest size it should be
*/
QSize minimumSizeHint() const
QSize minimumSizeHint() const Q_DECL_OVERRIDE
{
if (scene() == 0) {
return QSize();
......@@ -49,7 +49,7 @@ public slots:
void setBoardSize();
protected:
///Overloaded to resize board.
void resizeEvent(QResizeEvent *event)
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE
{
if (scene() != 0) {
fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
......
......@@ -24,7 +24,7 @@ public:
explicit KSquaresSquareItem(QGraphicsItem *parent = 0);
~KSquaresSquareItem();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) Q_DECL_OVERRIDE;
};
#endif // THEMEGRAPHICSITEMS_H
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