Mercurial > hg > svcore
comparison data/model/ModelDataTableModel.cpp @ 430:304fd0223fa6
* Add playback controls to data edit dialog
* Make data edit dialog close properly when layer is removed from view
* More fixes to playback tracking & selection model in data edit dialog
* Remove edit button from data edit dialog for now
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2008 15:53:23 +0000 |
parents | 3e1d190048f4 |
children | 7226ebac8bd3 |
comparison
equal
deleted
inserted
replaced
429:6036b38177e2 | 430:304fd0223fa6 |
---|---|
155 ModelDataTableModel::getFrameForModelIndex(const QModelIndex &index) const | 155 ModelDataTableModel::getFrameForModelIndex(const QModelIndex &index) const |
156 { | 156 { |
157 return m_model->getFrameForRow(getUnsorted(index.row())); | 157 return m_model->getFrameForRow(getUnsorted(index.row())); |
158 } | 158 } |
159 | 159 |
160 QModelIndex | |
161 ModelDataTableModel::getModelIndexForRow(int row) const | |
162 { | |
163 return createIndex(row, 0, 0); | |
164 } | |
165 | |
166 void | 160 void |
167 ModelDataTableModel::sort(int column, Qt::SortOrder sortOrder) | 161 ModelDataTableModel::sort(int column, Qt::SortOrder sortOrder) |
168 { | 162 { |
169 std::cerr << "ModelDataTableModel::sort(" << column << ", " << sortOrder | 163 std::cerr << "ModelDataTableModel::sort(" << column << ", " << sortOrder |
170 << ")" << std::endl; | 164 << ")" << std::endl; |