Mercurial > hg > svcore
comparison data/model/NoteModel.h @ 1649:1cc9a0d4b1b6 single-point
Update RegionModel following NoteModel, er, model. They have quite a bit in common that we should now pull out some of
author | Chris Cannam |
---|---|
date | Fri, 15 Mar 2019 14:23:50 +0000 |
parents | 86bbccb79c9b |
children | 7a56bb85030f |
comparison
equal
deleted
inserted
replaced
1648:86bbccb79c9b | 1649:1cc9a0d4b1b6 |
---|---|
305 case 5: return e.getLabel(); | 305 case 5: return e.getLabel(); |
306 default: return QVariant(); | 306 default: return QVariant(); |
307 } | 307 } |
308 } | 308 } |
309 | 309 |
310 Command *getSetDataCommand(int row, int column, const QVariant &value, int role) override | 310 Command *getSetDataCommand(int row, int column, const QVariant &value, int role) override { |
311 { | 311 |
312 if (row < 0 || row >= m_events.count()) return nullptr; | 312 if (row < 0 || row >= m_events.count()) return nullptr; |
313 if (role != Qt::EditRole) return nullptr; | 313 if (role != Qt::EditRole) return nullptr; |
314 | 314 |
315 Event e0 = m_events.getEventByIndex(row); | 315 Event e0 = m_events.getEventByIndex(row); |
316 Event e1; | 316 Event e1; |