Commit 0ebaf92c authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent 21866c6a
......@@ -68,10 +68,10 @@ class KBBGraphicsItemBall : public KBBGraphicsItemOnBox
private:
void hoverEnterEvent (QGraphicsSceneHoverEvent*);
void hoverLeaveEvent (QGraphicsSceneHoverEvent*);
void hoverEnterEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
void hoverLeaveEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
void init(KBBScalableGraphicWidget::itemType itemType, KBBThemeManager* themeManager);
void removeInteractionInfos();
void removeInteractionInfos() Q_DECL_OVERRIDE;
KBBGraphicsItemInteractionInfo* m_interactionInfos[8];
KBBThemeManager* m_themeManager;
......
......@@ -72,7 +72,7 @@ class KBBGraphicsItemBlackBox : public QGraphicsRectItem
private:
void mousePressEvent (QGraphicsSceneMouseEvent* event);
void mousePressEvent (QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
KBBGraphicsItem* m_background;
int m_columns;
......
......@@ -65,13 +65,13 @@ class KBBGraphicsItemLaser : public KBBGraphicsItemBorder, public KBBGraphicsIte
/**
* @brief Get the border position
*/
int position();
int position() Q_DECL_OVERRIDE;
private:
void hoverEnterEvent (QGraphicsSceneHoverEvent*);
void hoverLeaveEvent (QGraphicsSceneHoverEvent*);
void mousePressEvent (QGraphicsSceneMouseEvent* event);
void hoverEnterEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
void hoverLeaveEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
void mousePressEvent (QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
KBBScalableGraphicWidget* m_widget;
};
......
......@@ -58,7 +58,7 @@ class KBBGraphicsItemOnBox : public KBBGraphicsItem, public KBBItemWithPosition
KBBGraphicsItemOnBox(KBBScalableGraphicWidget::itemType itemType, KBBScalableGraphicWidget* parent, KBBThemeManager* themeManager, const int boxPosition, const int columns, const int rows);
int position();
int position() Q_DECL_OVERRIDE;
protected:
......@@ -72,8 +72,8 @@ class KBBGraphicsItemOnBox : public KBBGraphicsItem, public KBBItemWithPosition
private:
int boxPosition(qreal x, qreal y);
bool isMovable();
void mousePressEvent (QGraphicsSceneMouseEvent* event);
void mouseReleaseEvent (QGraphicsSceneMouseEvent* event);
void mousePressEvent (QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
void mouseReleaseEvent (QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
void setBoxPosition(int boxPosition);
int m_boxPosition;
......
......@@ -62,24 +62,24 @@ class KBBGraphicsItemRayResult : public KBBGraphicsItemBorder, public KBBGraphic
* @brief Destructor of the class and dependent object
* Call this methode to destroy simultaneously this QGraphicsItem and all other dependent QGraphicsItems: The number or the sign.
*/
void cleanDelete();
void cleanDelete() Q_DECL_OVERRIDE;
/**
* @brief Highlight the item
*
* Usually used when the mouse goes over the item or over the opposite item.
*/
void highlight(bool state);
void highlight(bool state) Q_DECL_OVERRIDE;
/**
* @brief Highlight the item and the opposite one
*/
void highlightBoth(bool state);
void highlightBoth(bool state) Q_DECL_OVERRIDE;
/**
* @brief Get the border position
*/
int position();
int position() Q_DECL_OVERRIDE;
/**
* @brief Define the opposite "ray result" item
......@@ -92,12 +92,12 @@ class KBBGraphicsItemRayResult : public KBBGraphicsItemBorder, public KBBGraphic
/**
* @brief Set the pause state
*/
void setPause(bool state);
void setPause(bool state) Q_DECL_OVERRIDE;
private:
void hoverEnterEvent (QGraphicsSceneHoverEvent*);
void hoverLeaveEvent (QGraphicsSceneHoverEvent*);
void hoverEnterEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
void hoverLeaveEvent (QGraphicsSceneHoverEvent*) Q_DECL_OVERRIDE;
QString m_elementIdResultBackground;
QString m_elementIdResultBackgroundHighlight;
......
......@@ -39,7 +39,7 @@ class KBBLevelConfigurationPreview : public QGraphicsView
protected:
void drawBackground(QPainter* painter, const QRectF&);
void drawBackground(QPainter* painter, const QRectF&) Q_DECL_OVERRIDE;
private:
......@@ -50,7 +50,7 @@ class KBBLevelConfigurationPreview : public QGraphicsView
private slots:
void resizeEvent(QResizeEvent*);
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
};
......
......@@ -150,7 +150,7 @@ class KBBScalableGraphicWidget : public QGraphicsView
void removeAllBalls();
void removeBall(const int boxPosition);
void removeRay();
void resizeEvent(QResizeEvent*);
void resizeEvent(QResizeEvent*) Q_DECL_OVERRIDE;
QGraphicsScene* scene();
void setScore(int score);
......@@ -174,7 +174,7 @@ class KBBScalableGraphicWidget : public QGraphicsView
protected:
void drawBackground(QPainter* painter, const QRectF&);
void drawBackground(QPainter* painter, const QRectF&) Q_DECL_OVERRIDE;
private:
......
......@@ -80,7 +80,7 @@ class KBBTutorial : public QGroupBox
*
* Called by exiting the tutorial
*/
void hideEvent(QHideEvent*);
void hideEvent(QHideEvent*) Q_DECL_OVERRIDE;
/**
* @brief May the player solve the running game?
......
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