diff data/model/IntervalModel.h @ 438:32c399d06374

* minor tidy
author Chris Cannam
date Thu, 07 Aug 2008 16:06:59 +0000
parents 7226ebac8bd3
children 6441b31b37ac
line wrap: on
line diff
--- 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<PointType> I;
+
         if (column < 2) {
             return SparseValueModel<PointType>::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<PointType>::PointList::const_iterator i
-            = SparseModel<PointType>::getPointListIteratorForRow(row);
-        if (i == SparseModel<PointType>::m_points.end()) return false;
-        typename IntervalModel<PointType>::EditCommand *command
-            = new typename IntervalModel<PointType>::EditCommand
-            (this, IntervalModel<PointType>::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);