Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 587:4806715f7a19
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:05 +0100 |
parents | f4960f8ce798 |
children | 3437e0fad7ae 1a0dfcbffaf1 |
comparison
equal
deleted
inserted
replaced
586:1ae54a29e59e | 587:4806715f7a19 |
---|---|
241 } | 241 } |
242 | 242 |
243 void | 243 void |
244 ModelDataTableDialog::viewClicked(const QModelIndex &index) | 244 ModelDataTableDialog::viewClicked(const QModelIndex &index) |
245 { | 245 { |
246 // DEBUG << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << endl; | 246 // SVDEBUG << "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 // DEBUG << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << endl; | 253 // SVDEBUG << "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 // DEBUG << "ModelDataTableDialog::currentChanged: from " | 260 // SVDEBUG << "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 // << 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); |
299 } | 299 } |
300 | 300 |
301 void | 301 void |
302 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index) | 302 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index) |
303 { | 303 { |
304 // DEBUG << "ModelDataTableDialog::currentChangedThroughResort: row = " << index.row() << endl; | 304 // SVDEBUG << "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 |