# HG changeset patch # User Chris Cannam # Date 1213602935 0 # Node ID 2386582f67cd87e40f56b95dc14a1dded6dc54cd # Parent f5e8f12d2e58f1a8a39c76c2eaeb5ab88c25ce2a * build fix diff -r f5e8f12d2e58 -r 2386582f67cd data/model/ModelDataTableModel.cpp --- a/data/model/ModelDataTableModel.cpp Fri Jun 13 21:09:43 2008 +0000 +++ b/data/model/ModelDataTableModel.cpp Mon Jun 16 07:55:35 2008 +0000 @@ -151,7 +151,7 @@ } int -ModelDataTableModel::getSorted(int row) +ModelDataTableModel::getSorted(int row) const { if (m_model->isColumnTimeValue(m_sortColumn)) { if (m_sortOrdering == Qt::AscendingOrder) { @@ -176,7 +176,7 @@ } int -ModelDataTableModel::getUnsorted(int row) +ModelDataTableModel::getUnsorted(int row) const { if (m_model->isColumnTimeValue(m_sortColumn)) { if (m_sortOrdering == Qt::AscendingOrder) { @@ -203,7 +203,7 @@ } void -ModelDataTableModel::resort() +ModelDataTableModel::resort() const { bool numeric = (m_model->getSortType(m_sortColumn) == TabularModel::SortNumeric); @@ -232,7 +232,7 @@ } void -ModelDataTableModel::resortNumeric() +ModelDataTableModel::resortNumeric() const { typedef std::multimap MapType; @@ -252,7 +252,7 @@ } void -ModelDataTableModel::resortAlphabetical() +ModelDataTableModel::resortAlphabetical() const { typedef std::multimap MapType; diff -r f5e8f12d2e58 -r 2386582f67cd data/model/ModelDataTableModel.h --- a/data/model/ModelDataTableModel.h Fri Jun 13 21:09:43 2008 +0000 +++ b/data/model/ModelDataTableModel.h Mon Jun 16 07:55:35 2008 +0000 @@ -66,13 +66,13 @@ int m_sortColumn; Qt::SortOrder m_sortOrdering; typedef std::vector RowList; - RowList m_sort; - RowList m_rsort; - int getSorted(int row); - int getUnsorted(int row); - void resort(); - void resortNumeric(); - void resortAlphabetical(); + mutable RowList m_sort; + mutable RowList m_rsort; + int getSorted(int row) const; + int getUnsorted(int row) const; + void resort() const; + void resortNumeric() const; + void resortAlphabetical() const; }; #endif