diff data/model/ModelDataTableModel.cpp @ 437:7226ebac8bd3

* Add IntervalModel as base class for NoteModel (and other, further models, hopefully)
author Chris Cannam
date Thu, 07 Aug 2008 15:59:20 +0000
parents 304fd0223fa6
children ba7aaacb7211
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp	Thu Jul 10 12:50:56 2008 +0000
+++ b/data/model/ModelDataTableModel.cpp	Thu Aug 07 15:59:20 2008 +0000
@@ -160,8 +160,8 @@
 void
 ModelDataTableModel::sort(int column, Qt::SortOrder sortOrder)
 {
-    std::cerr << "ModelDataTableModel::sort(" << column << ", " << sortOrder
-              << ")" << std::endl;
+//    std::cerr << "ModelDataTableModel::sort(" << column << ", " << sortOrder
+//              << ")" << std::endl;
     int prevCurrent = getCurrentRow();
     if (m_sortColumn != column) {
         clearSort();
@@ -170,7 +170,7 @@
     m_sortOrdering = sortOrder;
     int current = getCurrentRow();
     if (current != prevCurrent) {
-         std::cerr << "Current row changed from " << prevCurrent << " to " << current << " for underlying row " << m_currentRow << std::endl;
+//         std::cerr << "Current row changed from " << prevCurrent << " to " << current << " for underlying row " << m_currentRow << std::endl;
          emit currentChanged(createIndex(current, 0, 0));
     }
     emit layoutChanged();