summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-06-01 22:53:24 +0200
committerMontel Laurent <[email protected]>2017-06-01 22:53:24 +0200
commitcd73c193439f0ad7b744afdc545aaf3f46bdf15a (patch)
tree6953d6d207aaf856345edacafad318d4cd3c9816
parent79cdc9f97218aa99ea40890758559d1f63a9fec1 (diff)
Use Q_DECLARE_OVERRIDE
-rw-r--r--numericdisplayitem.h2
-rw-r--r--scene.h4
-rw-r--r--sprite.h4
-rw-r--r--view.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/numericdisplayitem.h b/numericdisplayitem.h
index a56fa7d..acb831a 100644
--- a/numericdisplayitem.h
+++ b/numericdisplayitem.h
@@ -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);
diff --git a/scene.h b/scene.h
index 7a0dab0..f4478a2 100644
--- a/scene.h
+++ b/scene.h
@@ -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;
diff --git a/sprite.h b/sprite.h
index a9a04ff..48887a6 100644
--- a/sprite.h
+++ b/sprite.h
@@ -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;
diff --git a/view.h b/view.h
index 3615800..9b2b140 100644
--- a/view.h
+++ b/view.h
@@ -37,7 +37,7 @@ signals:
void sizeChanged(QSize newSize);
protected: // functions
- virtual void resizeEvent(QResizeEvent *event);
+ void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
};
}