Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 586:1ae54a29e59e
Merge from debug-output branch
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 14:48:29 +0100 |
parents | f4960f8ce798 |
children | 4806715f7a19 |
comparison
equal
deleted
inserted
replaced
583:4c484636d5ec | 586:1ae54a29e59e |
---|---|
241 } | 241 } |
242 | 242 |
243 void | 243 void |
244 ModelDataTableDialog::viewClicked(const QModelIndex &index) | 244 ModelDataTableDialog::viewClicked(const QModelIndex &index) |
245 { | 245 { |
246 // std::cerr << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << std::endl; | 246 // DEBUG << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << endl; |
247 emit scrollToFrame(m_table->getFrameForModelIndex(index)); | 247 emit scrollToFrame(m_table->getFrameForModelIndex(index)); |
248 } | 248 } |
249 | 249 |
250 void | 250 void |
251 ModelDataTableDialog::viewPressed(const QModelIndex &index) | 251 ModelDataTableDialog::viewPressed(const QModelIndex &index) |
252 { | 252 { |
253 // std::cerr << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << std::endl; | 253 // DEBUG << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << endl; |
254 } | 254 } |
255 | 255 |
256 void | 256 void |
257 ModelDataTableDialog::currentChanged(const QModelIndex ¤t, | 257 ModelDataTableDialog::currentChanged(const QModelIndex ¤t, |
258 const QModelIndex &previous) | 258 const QModelIndex &previous) |
259 { | 259 { |
260 // std::cerr << "ModelDataTableDialog::currentChanged: from " | 260 // DEBUG << "ModelDataTableDialog::currentChanged: from " |
261 // << previous.row() << ", " << previous.column() | 261 // << previous.row() << ", " << previous.column() |
262 // << " to " << current.row() << ", " << current.column() | 262 // << " to " << current.row() << ", " << current.column() |
263 // << std::endl; | 263 // << endl; |
264 m_currentRow = current.row(); | 264 m_currentRow = current.row(); |
265 m_table->setCurrentRow(m_currentRow); | 265 m_table->setCurrentRow(m_currentRow); |
266 } | 266 } |
267 | 267 |
268 void | 268 void |
299 } | 299 } |
300 | 300 |
301 void | 301 void |
302 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index) | 302 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index) |
303 { | 303 { |
304 // std::cerr << "ModelDataTableDialog::currentChangedThroughResort: row = " << index.row() << std::endl; | 304 // DEBUG << "ModelDataTableDialog::currentChangedThroughResort: row = " << index.row() << endl; |
305 // m_tableView->scrollTo(index); | 305 // m_tableView->scrollTo(index); |
306 makeCurrent(index.row()); | 306 makeCurrent(index.row()); |
307 } | 307 } |
308 | 308 |
309 void | 309 void |