diff data/model/SparseTimeValueModel.h @ 423:6a96bff0bd59

* Update translations, and add change counter to name of bundle command
author Chris Cannam
date Thu, 12 Jun 2008 10:47:11 +0000
parents 4caa28a0a8a2
children eafef13bb0b3
line wrap: on
line diff
--- a/data/model/SparseTimeValueModel.h	Thu Jun 12 09:03:00 2008 +0000
+++ b/data/model/SparseTimeValueModel.h	Thu Jun 12 10:47:11 2008 +0000
@@ -77,6 +77,8 @@
 
 class SparseTimeValueModel : public SparseValueModel<TimeValuePoint>
 {
+    Q_OBJECT
+    
 public:
     SparseTimeValueModel(size_t sampleRate, size_t resolution,
 			 bool notifyOnAdd = true) :
@@ -143,8 +145,6 @@
 
     virtual Command *getSetDataCommand(int row, int column, const QVariant &value, int role) const
     {
-        std::cerr << "SparseTimeValueModel::setData: row = " << row << ", column = " << column << ", role = " << role << std::endl;
-
         if (role != Qt::EditRole) return false;
         PointListIterator i = getPointListIteratorForRow(row);
         if (i == m_points.end()) {
@@ -159,9 +159,7 @@
         switch (column) {
         case 0: break; 
         case 1: break;
-        case 2: point.value = value.toDouble();
-            std::cerr << "setting value of point at " << point.frame << " to " << point.value << std::endl;
-            break;
+        case 2: point.value = value.toDouble(); break;
         case 3: point.label = value.toString(); break;
         }