Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.h @ 401:96531861b2f3
* a bit of progress on retaining current row when sorting changes &c
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2008 16:07:56 +0000 |
parents | 32acd578fcba |
children | 66e01a6c9554 |
comparison
equal
deleted
inserted
replaced
400:32acd578fcba | 401:96531861b2f3 |
---|---|
34 | 34 |
35 signals: | 35 signals: |
36 void scrollToFrame(unsigned long frame); | 36 void scrollToFrame(unsigned long frame); |
37 | 37 |
38 public slots: | 38 public slots: |
39 void scrollToFrameRequested(unsigned long frame); | 39 void userScrolledToFrame(unsigned long frame); |
40 void playbackScrolledToFrame(unsigned long frame); | |
40 void addCommand(Command *); | 41 void addCommand(Command *); |
41 | 42 |
42 protected slots: | 43 protected slots: |
43 void viewClicked(const QModelIndex &); | 44 void viewClicked(const QModelIndex &); |
44 void viewPressed(const QModelIndex &); | 45 void viewPressed(const QModelIndex &); |
45 void currentChanged(const QModelIndex &, const QModelIndex &); | 46 void currentChanged(const QModelIndex &, const QModelIndex &); |
47 void currentChangedThroughResort(const QModelIndex &); | |
46 | 48 |
47 void insertRow(); | 49 void insertRow(); |
48 void deleteRows(); | 50 void deleteRows(); |
49 void editRow(); | 51 void editRow(); |
50 | 52 |
51 protected: | 53 protected: |
54 void makeCurrent(int row); | |
52 ModelDataTableModel *m_table; | 55 ModelDataTableModel *m_table; |
53 QTableView *m_tableView; | 56 QTableView *m_tableView; |
54 int m_currentRow; | 57 int m_currentRow; |
58 bool m_trackPlayback; | |
55 }; | 59 }; |
56 | 60 |
57 #endif | 61 #endif |