# HG changeset patch # User Chris Cannam # Date 1213804403 0 # Node ID 304fd0223fa6f9bf3456ead9c8f8910fc5f2f883 # Parent 6036b38177e2cf2ffe834ab4d4a2c56bc86ca502 * 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 diff -r 6036b38177e2 -r 304fd0223fa6 data/model/ModelDataTableModel.cpp --- a/data/model/ModelDataTableModel.cpp Wed Jun 18 13:40:10 2008 +0000 +++ b/data/model/ModelDataTableModel.cpp Wed Jun 18 15:53:23 2008 +0000 @@ -157,12 +157,6 @@ return m_model->getFrameForRow(getUnsorted(index.row())); } -QModelIndex -ModelDataTableModel::getModelIndexForRow(int row) const -{ - return createIndex(row, 0, 0); -} - void ModelDataTableModel::sort(int column, Qt::SortOrder sortOrder) { diff -r 6036b38177e2 -r 304fd0223fa6 data/model/ModelDataTableModel.h --- a/data/model/ModelDataTableModel.h Wed Jun 18 13:40:10 2008 +0000 +++ b/data/model/ModelDataTableModel.h Wed Jun 18 15:53:23 2008 +0000 @@ -54,8 +54,6 @@ QModelIndex getModelIndexForFrame(size_t frame) const; size_t getFrameForModelIndex(const QModelIndex &) const; - QModelIndex getModelIndexForRow(int row) const; - void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); void setCurrentRow(int row);