comparison widgets/ModelDataTableDialog.cpp @ 394:592d692b4f8b

* A bit more work on the data editor
author Chris Cannam
date Wed, 11 Jun 2008 12:54:18 +0000
parents 6671eb37d6d6
children 33c2f268c950
comparison
equal deleted inserted replaced
393:6671eb37d6d6 394:592d692b4f8b
88 { 88 {
89 delete m_table; 89 delete m_table;
90 } 90 }
91 91
92 void 92 void
93 ModelDataTableDialog::scrollToFrame(unsigned long frame) 93 ModelDataTableDialog::scrollToFrameRequested(unsigned long frame)
94 { 94 {
95 m_tableView->scrollTo(m_table->getModelIndexForFrame(frame)); 95 m_tableView->scrollTo(m_table->getModelIndexForFrame(frame));
96 } 96 }
97 97
98 void 98 void
99 ModelDataTableDialog::viewClicked(const QModelIndex &index) 99 ModelDataTableDialog::viewClicked(const QModelIndex &index)
100 { 100 {
101 std::cerr << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << std::endl; 101 std::cerr << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << std::endl;
102 emit scrollToFrame(m_table->getFrameForModelIndex(index));
102 } 103 }
103 104
104 void 105 void
105 ModelDataTableDialog::viewPressed(const QModelIndex &index) 106 ModelDataTableDialog::viewPressed(const QModelIndex &index)
106 { 107 {