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

Use Q_DECLARE_OVERRIDE

parent 79cdc9f9
......@@ -41,7 +41,7 @@ public: // functions
QFont font() const;
QSize preferredSize();
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
void paint(QPainter *p, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) Q_DECL_OVERRIDE;
public slots:
void setValue(int value);
......
......@@ -56,8 +56,8 @@ signals:
void clicked(int action);
protected: // functions
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent) Q_DECL_OVERRIDE;
private: // functions
HeroAction getMouseDirection(QPointF cursorPosition) const;
......
......@@ -52,10 +52,10 @@ public: // functions
QPoint gridPos() const;
void advanceGridPosQueue();
virtual int type() const;
int type() const Q_DECL_OVERRIDE;
protected:
virtual void receivePixmap(const QPixmap &pixmap);
void receivePixmap(const QPixmap &pixmap) Q_DECL_OVERRIDE;
private: // data members
SpriteType m_type;
......
......@@ -37,7 +37,7 @@ signals:
void sizeChanged(QSize newSize);
protected: // functions
virtual void resizeEvent(QResizeEvent *event);
void resizeEvent(QResizeEvent *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