comparison widgets/ModelDataTableDialog.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 2e8194a30f40
children 4806715f7a19
comparison
equal deleted inserted replaced
584:1fe7951a61e8 585:f4960f8ce798
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 &current, 257 ModelDataTableDialog::currentChanged(const QModelIndex &current,
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