Mercurial > hg > svcore
comparison data/model/ModelDataTableModel.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | ec9e65fcf749 |
children | 91a194e2d80b |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
31 | 31 |
32 public: | 32 public: |
33 ModelDataTableModel(TabularModel *m); | 33 ModelDataTableModel(TabularModel *m); |
34 virtual ~ModelDataTableModel(); | 34 virtual ~ModelDataTableModel(); |
35 | 35 |
36 QVariant data(const QModelIndex &index, int role) const; | 36 QVariant data(const QModelIndex &index, int role) const override; |
37 | 37 |
38 bool setData(const QModelIndex &index, const QVariant &value, int role); | 38 bool setData(const QModelIndex &index, const QVariant &value, int role) override; |
39 | 39 |
40 bool insertRow(int row, const QModelIndex &parent = QModelIndex()); | 40 bool insertRow(int row, const QModelIndex &parent = QModelIndex()); |
41 bool removeRow(int row, const QModelIndex &parent = QModelIndex()); | 41 bool removeRow(int row, const QModelIndex &parent = QModelIndex()); |
42 | 42 |
43 Qt::ItemFlags flags(const QModelIndex &index) const; | 43 Qt::ItemFlags flags(const QModelIndex &index) const override; |
44 | 44 |
45 QVariant headerData(int section, Qt::Orientation orientation, | 45 QVariant headerData(int section, Qt::Orientation orientation, |
46 int role = Qt::DisplayRole) const; | 46 int role = Qt::DisplayRole) const override; |
47 | 47 |
48 QModelIndex index(int row, int column, | 48 QModelIndex index(int row, int column, |
49 const QModelIndex &parent = QModelIndex()) const; | 49 const QModelIndex &parent = QModelIndex()) const override; |
50 | 50 |
51 QModelIndex parent(const QModelIndex &index) const; | 51 QModelIndex parent(const QModelIndex &index) const override; |
52 | 52 |
53 int rowCount(const QModelIndex &parent = QModelIndex()) const; | 53 int rowCount(const QModelIndex &parent = QModelIndex()) const override; |
54 int columnCount(const QModelIndex &parent = QModelIndex()) const; | 54 int columnCount(const QModelIndex &parent = QModelIndex()) const override; |
55 | 55 |
56 QModelIndex getModelIndexForFrame(sv_frame_t frame) const; | 56 QModelIndex getModelIndexForFrame(sv_frame_t frame) const; |
57 sv_frame_t getFrameForModelIndex(const QModelIndex &) const; | 57 sv_frame_t getFrameForModelIndex(const QModelIndex &) const; |
58 | 58 |
59 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); | 59 void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override; |
60 | 60 |
61 QModelIndex findText(QString text) const; | 61 QModelIndex findText(QString text) const; |
62 | 62 |
63 void setCurrentRow(int row); | 63 void setCurrentRow(int row); |
64 int getCurrentRow() const; | 64 int getCurrentRow() const; |