# HG changeset patch # User Chris Cannam # Date 1218125219 0 # Node ID 32c399d06374595b19ce82ae72b4214dd4302f82 # Parent 7226ebac8bd357fc93a4ec3211af9ad8a211496b * minor tidy diff -r 7226ebac8bd3 -r 32c399d06374 data/model/IntervalModel.h --- a/data/model/IntervalModel.h Thu Aug 07 15:59:20 2008 +0000 +++ b/data/model/IntervalModel.h Thu Aug 07 16:06:59 2008 +0000 @@ -84,19 +84,19 @@ virtual Command *getSetDataCommand(int row, int column, const QVariant &value, int role) { + typedef IntervalModel I; + if (column < 2) { return SparseValueModel::getSetDataCommand (row, column, value, role); } if (role != Qt::EditRole) return false; - // gah. This is such garbage. Thank you, C++! I love you too - typename SparseModel::PointList::const_iterator i - = SparseModel::getPointListIteratorForRow(row); - if (i == SparseModel::m_points.end()) return false; - typename IntervalModel::EditCommand *command - = new typename IntervalModel::EditCommand - (this, IntervalModel::tr("Edit Data")); + typename I::PointList::const_iterator i + = I::getPointListIteratorForRow(row); + if (i == I::m_points.end()) return false; + typename I::EditCommand *command = new typename I::EditCommand + (this, I::tr("Edit Data")); PointType point(*i); command->deletePoint(point);