Mercurial > hg > svcore
comparison data/model/DenseThreeDimensionalModel.h @ 1804:343ef2a866a4
Implement missing TabularModel editing methods. Also made these pure in TabularModel, since almost all subclasses want them and (clearly) forgetting to implement them is a problem!
author | Chris Cannam |
---|---|
date | Mon, 14 Oct 2019 14:17:37 +0100 |
parents | 73077ec5aed6 |
children | c7e9e63c7bae |
comparison
equal
deleted
inserted
replaced
1803:6eb3a76c74f7 | 1804:343ef2a866a4 |
---|---|
130 */ | 130 */ |
131 | 131 |
132 int getRowCount() const override { return getWidth(); } | 132 int getRowCount() const override { return getWidth(); } |
133 int getColumnCount() const override { return getHeight() + 2; } | 133 int getColumnCount() const override { return getHeight() + 2; } |
134 | 134 |
135 bool isEditable() const override { return false; } | |
136 Command *getSetDataCommand(int, int, const QVariant &, int) { return nullptr; } | |
137 Command *getInsertRowCommand(int) { return nullptr; } | |
138 Command *getRemoveRowCommand(int) { return nullptr; } | |
139 | |
135 QString getHeading(int column) const override | 140 QString getHeading(int column) const override |
136 { | 141 { |
137 switch (column) { | 142 switch (column) { |
138 case 0: return tr("Time"); | 143 case 0: return tr("Time"); |
139 case 1: return tr("Frame"); | 144 case 1: return tr("Frame"); |