Commit 5560ff75 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent d3b85b43
......@@ -26,8 +26,8 @@ class ActionAdd : public QUndoCommand
ActionAdd(ToDraw *item, QGraphicsScene *scene);
~ActionAdd();
void redo();
void undo();
void redo() Q_DECL_OVERRIDE;
void undo() Q_DECL_OVERRIDE;
private:
ToDraw *m_item;
......@@ -43,8 +43,8 @@ class ActionRemove : public QUndoCommand
ActionRemove(ToDraw *item, const QPointF &oldPos, QGraphicsScene *scene);
~ActionRemove();
void redo();
void undo();
void redo() Q_DECL_OVERRIDE;
void undo() Q_DECL_OVERRIDE;
private:
ToDraw *m_item;
......@@ -58,8 +58,8 @@ class ActionMove : public QUndoCommand
public:
ActionMove(ToDraw *item, const QPointF &oldPos, int zValue, QGraphicsScene *scene);
void redo();
void undo();
void redo() Q_DECL_OVERRIDE;
void undo() Q_DECL_OVERRIDE;
private:
ToDraw *m_item;
......
......@@ -58,9 +58,9 @@ public Q_SLOTS:
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void resizeEvent(QResizeEvent *event);
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
private:
QPointF clipPos(const QPointF &p, ToDraw *item) const;
......
......@@ -27,8 +27,8 @@ class PlaygroundDelegate : public QAbstractItemDelegate
public:
explicit PlaygroundDelegate(QObject *parent = 0);
private:
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
};
#endif // PLAYGROUNDDELEGATE_H
......@@ -23,18 +23,18 @@ class ToDraw : public QGraphicsSvgItem
void save(QDataStream &stream) const;
bool load(QDataStream &stream);
bool contains(const QPointF &point) const;
bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
enum { Type = UserType + 1 };
int type() const;
int type() const Q_DECL_OVERRIDE;
QRectF boundingRect() const;
QRectF boundingRect() const Q_DECL_OVERRIDE;
QRectF unclippedRect() const;
void setBeingDragged(bool dragged);
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
private:
QRectF clippedRectAt(const QPointF &somePos) const;
......
......@@ -44,7 +44,7 @@ protected:
void setupKAction();
protected slots:
void saveNewToolbarConfig();
void saveNewToolbarConfig() Q_DECL_OVERRIDE;
private slots:
......
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