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

Use Q_DECLARE_OVERRIDE

parent dbfedbea
......@@ -65,8 +65,8 @@ protected slots:
void slotModeChanged(QAction *);
protected:
void resizeEvent(QResizeEvent * event);
void paintEvent(QPaintEvent * pa);
void resizeEvent(QResizeEvent * event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent * pa) Q_DECL_OVERRIDE;
void setupToolbar();
void drawBackground(QPixmap * to) const;
......@@ -83,7 +83,7 @@ protected:
/**
* Override the closeEvent(...) method of qdialog. */
void closeEvent(QCloseEvent * e);
void closeEvent(QCloseEvent * e) Q_DECL_OVERRIDE;
/**
* Update the tile size. */
......
......@@ -52,10 +52,10 @@ signals:
void mouseMoved(QMouseEvent * e);
protected:
void mousePressEvent(QMouseEvent * e);
void mouseMoveEvent(QMouseEvent * e);
void resizeEvent(QResizeEvent * e);
void paintEvent(QPaintEvent * pa);
void mousePressEvent(QMouseEvent * e) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent * e) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent * pa) Q_DECL_OVERRIDE;
private:
int m_rx;
......
......@@ -104,12 +104,12 @@ public:
/**
* Overrides the paint method of QGraphicsItem. */
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option,
QWidget * widget);
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option,
QWidget * widget) Q_DECL_OVERRIDE;
/**
* Overrides the boundingRect method of QGraphicsItem. */
virtual QRectF boundingRect() const;
QRectF boundingRect() const Q_DECL_OVERRIDE;
/**
* Returns the rect of the item.
......
......@@ -100,16 +100,16 @@ public:
/**
* Override from QGraphicsScene. */
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent);
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
/**
* Override from QGraphicsScene. */
void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
/**
* Override from QGraphicsScene.
* Mouse wheel rotates view. */
void wheelEvent(QGraphicsSceneWheelEvent * mouseEvent);
void wheelEvent(QGraphicsSceneWheelEvent * mouseEvent) Q_DECL_OVERRIDE;
/**
* Test if the item is selectable or not.
......
......@@ -262,11 +262,11 @@ public slots:
protected:
/**
* Override from QGraphicsView. */
virtual void resizeEvent(QResizeEvent * event);
void resizeEvent(QResizeEvent * event) Q_DECL_OVERRIDE;
/**
* Override from QGraphicsView. */
virtual void mousePressEvent(QMouseEvent * mouseEvent);
void mousePressEvent(QMouseEvent * mouseEvent) Q_DECL_OVERRIDE;
signals:
/**
......
......@@ -60,8 +60,8 @@ public slots:
protected:
void setupKAction();
void setupStatusBar();
void changeEvent(QEvent * event);
void closeEvent(QCloseEvent * event);
void changeEvent(QEvent * event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent * event) Q_DECL_OVERRIDE;
private slots:
void showSettings();
......
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