Commit 56c82dd6 authored by Laurent Montel's avatar Laurent Montel 😁

Use override

parent 229a8f8f
......@@ -42,8 +42,8 @@ class dicesWidget : public QWidget
int totalSum() const;
protected:
void paintEvent(QPaintEvent *p) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *p) override;
void mousePressEvent(QMouseEvent *e) override;
private:
bool generateDices();
......
......@@ -17,7 +17,7 @@ class itemDelegate : public QItemDelegate
Q_OBJECT
public:
explicit itemDelegate(int height, QObject *parent = 0);
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
void setHeight(int height);
......
......@@ -31,10 +31,10 @@ class scores : public QAbstractTableModel
Row row(int row) const;
int rowForScoreRow(int scoreRow) const;
int rowCount(const QModelIndex &index) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &index) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
bool setData(const QModelIndex &mi, const QVariant &value, int role) Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &index) const override;
int columnCount(const QModelIndex &index) const override;
QVariant data(const QModelIndex &index, int role) const override;
bool setData(const QModelIndex &mi, const QVariant &value, int role) override;
void askForRedraw();
void print(QPainter &painter, double width, double height) const;
......
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