comparison data/model/NoteModel.h @ 606:1415e35881f6

* Some (incomplete) Solaris build bobs
author Chris Cannam
date Thu, 10 Sep 2009 14:17:59 +0000
parents 325112751f0e
children 080d8bdd8762
comparison
equal deleted inserted replaced
605:133418f4e74c 606:1415e35881f6
176 { 176 {
177 if (column < 4) { 177 if (column < 4) {
178 return IntervalModel<Note>::getData(row, column, role); 178 return IntervalModel<Note>::getData(row, column, role);
179 } 179 }
180 180
181 PointListIterator i = getPointListIteratorForRow(row); 181 PointListConstIterator i = getPointListIteratorForRow(row);
182 if (i == m_points.end()) return QVariant(); 182 if (i == m_points.end()) return QVariant();
183 183
184 switch (column) { 184 switch (column) {
185 case 4: return i->level; 185 case 4: return i->level;
186 case 5: return i->label; 186 case 5: return i->label;
194 return IntervalModel<Note>::getSetDataCommand 194 return IntervalModel<Note>::getSetDataCommand
195 (row, column, value, role); 195 (row, column, value, role);
196 } 196 }
197 197
198 if (role != Qt::EditRole) return false; 198 if (role != Qt::EditRole) return false;
199 PointListIterator i = getPointListIteratorForRow(row); 199 PointListConstIterator i = getPointListIteratorForRow(row);
200 if (i == m_points.end()) return false; 200 if (i == m_points.end()) return false;
201 EditCommand *command = new EditCommand(this, tr("Edit Data")); 201 EditCommand *command = new EditCommand(this, tr("Edit Data"));
202 202
203 Point point(*i); 203 Point point(*i);
204 command->deletePoint(point); 204 command->deletePoint(point);