Commit 648e605b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override

parent d98f7cb8
Pipeline #110814 failed with stage
in 2 minutes and 9 seconds
......@@ -43,13 +43,13 @@ class AiAron : public Ai
public:
explicit AiAron(const Dimension &dimension, KgDifficultyLevel::StandardLevel skill, Player player);
~AiAron() override;
void cancelAndWait() Q_DECL_OVERRIDE;
void cancelAndWait() override;
public Q_SLOTS:
void changeBoard(const Move &move) Q_DECL_OVERRIDE;
void gameOver() Q_DECL_OVERRIDE;
void setSkill(KgDifficultyLevel::StandardLevel skill) Q_DECL_OVERRIDE;
void slotMove() Q_DECL_OVERRIDE;
void changeBoard(const Move &move) override;
void gameOver() override;
void setSkill(KgDifficultyLevel::StandardLevel skill) override;
void slotMove() override;
Q_SIGNALS:
void move(const Move &move);
......
......@@ -44,14 +44,14 @@ class AiGabor : public Ai, public AiTimeOver
public:
explicit AiGabor(const Dimension &dimension, KgDifficultyLevel::StandardLevel skill, Player player);
~AiGabor() override;
void cancelAndWait() Q_DECL_OVERRIDE;
bool isTimeOver() Q_DECL_OVERRIDE;
void cancelAndWait() override;
bool isTimeOver() override;
public Q_SLOTS:
void changeBoard(const Move &move) Q_DECL_OVERRIDE;
void gameOver() Q_DECL_OVERRIDE;
void setSkill(KgDifficultyLevel::StandardLevel skill) Q_DECL_OVERRIDE;
void slotMove() Q_DECL_OVERRIDE;
void changeBoard(const Move &move) override;
void gameOver() override;
void setSkill(KgDifficultyLevel::StandardLevel skill) override;
void slotMove() override;
Q_SIGNALS:
void move(const Move &move);
......
......@@ -47,7 +47,7 @@ public:
void killAnimation();
void kill();
void setFill(qreal fill);
QRectF boundingRect() const Q_DECL_OVERRIDE;
QRectF boundingRect() const override;
public Q_SLOTS:
void tick();
......@@ -57,7 +57,7 @@ Q_SIGNALS:
void killed();
protected:
void paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *widget = nullptr) Q_DECL_OVERRIDE;
void paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *widget = nullptr) override;
private:
Scene *m_scene;
......
......@@ -51,7 +51,7 @@ public:
usi row() const;
usi col() const;
void setFill(qreal fill);
QRectF boundingRect() const Q_DECL_OVERRIDE;
QRectF boundingRect() const override;
public Q_SLOTS:
void tick();
......@@ -61,7 +61,7 @@ Q_SIGNALS:
void killed(Mark *thisMark);
protected:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *widget = nullptr) Q_DECL_OVERRIDE;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *widget = nullptr) override;
private:
Scene *m_scene;
......
......@@ -74,16 +74,16 @@ public Q_SLOTS:
void killMark(Mark *);
protected:
bool event(QEvent *event) Q_DECL_OVERRIDE;
bool event(QEvent *event) override;
Q_SIGNALS:
void move(const Move &);
private:
void drawBackground(QPainter *p, const QRectF &rect) Q_DECL_OVERRIDE;
void drawForeground(QPainter *p, const QRectF &rect) Q_DECL_OVERRIDE;
void mousePressEvent(QGraphicsSceneMouseEvent *) Q_DECL_OVERRIDE;
void mouseMoveEvent(QGraphicsSceneMouseEvent *) Q_DECL_OVERRIDE;
void drawBackground(QPainter *p, const QRectF &rect) override;
void drawForeground(QPainter *p, const QRectF &rect) override;
void mousePressEvent(QGraphicsSceneMouseEvent *) override;
void mouseMoveEvent(QGraphicsSceneMouseEvent *) override;
void killAnimations();
bool m_activate;
Game *m_game;
......
......@@ -36,8 +36,8 @@ public:
View(Scene *scene, const QColor &bgColor, QWidget *parent);
private:
void resizeEvent(QResizeEvent *) Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *) override;
QSize sizeHint() const override;
Scene *m_scene;
};
......
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