diff data/model/ModelDataTableModel.cpp @ 425:f5e8f12d2e58

* Add audio device selection to preferences * Add (not yet functional) insert, delete, edit buttons to data edit window * Add proper set methods for time fields in data edit window (using general sparse model base class)
author Chris Cannam
date Fri, 13 Jun 2008 21:09:43 +0000
parents eafef13bb0b3
children 2386582f67cd
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp	Thu Jun 12 14:33:45 2008 +0000
+++ b/data/model/ModelDataTableModel.cpp	Fri Jun 13 21:09:43 2008 +0000
@@ -74,9 +74,12 @@
 QVariant
 ModelDataTableModel::headerData(int section, Qt::Orientation orientation, int role) const
 {
+    if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
+        return section + 1;
+    }
     if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
         return m_model->getHeading(section);
-    }
+    } 
     return QVariant();
 }