Use override
This commit is contained in:
@@ -46,7 +46,7 @@ class StretchHeaderView : public QHeaderView {
|
||||
static const int kMinimumColumnWidth;
|
||||
static const int kMagicNumber;
|
||||
|
||||
void setModel(QAbstractItemModel *model);
|
||||
void setModel(QAbstractItemModel *model) override;
|
||||
|
||||
// Serialises the proportional and actual column widths.
|
||||
// Use these instead of QHeaderView::restoreState and QHeaderView::saveState to persist the proportional values directly and avoid floating point errors over time.
|
||||
@@ -80,8 +80,8 @@ class StretchHeaderView : public QHeaderView {
|
||||
|
||||
protected:
|
||||
// QWidget
|
||||
void mouseMoveEvent(QMouseEvent *e);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *e) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
private:
|
||||
// Scales column_widths_ values so the total is 1.0.
|
||||
|
||||
Reference in New Issue
Block a user