comparison data/model/SparseOneDimensionalModel.h @ 1661:353a2d15f213 single-point

Update TextModel
author Chris Cannam
date Fri, 22 Mar 2019 11:04:51 +0000
parents b234d4d011df
children 82d03c9661f9
comparison
equal deleted inserted replaced
1660:b234d4d011df 1661:353a2d15f213
178 int getColumnCount() const override { 178 int getColumnCount() const override {
179 return 3; 179 return 3;
180 } 180 }
181 181
182 bool isColumnTimeValue(int column) const override { 182 bool isColumnTimeValue(int column) const override {
183 // NB duration is not a "time value" -- that's for columns
184 // whose sort ordering is exactly that of the frame time
185 return (column < 2); 183 return (column < 2);
186 } 184 }
187 185
188 sv_frame_t getFrameForRow(int row) const override { 186 sv_frame_t getFrameForRow(int row) const override {
189 if (row < 0 || row >= m_events.count()) { 187 if (row < 0 || row >= m_events.count()) {