Mercurial > hg > svcore
changeset 426:2386582f67cd
* build fix
author | Chris Cannam |
---|---|
date | Mon, 16 Jun 2008 07:55:35 +0000 |
parents | f5e8f12d2e58 |
children | 72ec275e458b |
files | data/model/ModelDataTableModel.cpp data/model/ModelDataTableModel.h |
diffstat | 2 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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<double, int> MapType; @@ -252,7 +252,7 @@ } void -ModelDataTableModel::resortAlphabetical() +ModelDataTableModel::resortAlphabetical() const { typedef std::multimap<QString, int> MapType;
--- 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<int> 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