comparison widgets/ModelDataTableDialog.cpp @ 409:feeb48f7478a

* remove some debug
author Chris Cannam
date Thu, 31 Jul 2008 15:54:24 +0000
parents 7920688d8e70
children 55cdd79606ba
comparison
equal deleted inserted replaced
408:46a6daf1119b 409:feeb48f7478a
203 } 203 }
204 204
205 void 205 void
206 ModelDataTableDialog::viewClicked(const QModelIndex &index) 206 ModelDataTableDialog::viewClicked(const QModelIndex &index)
207 { 207 {
208 std::cerr << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << std::endl; 208 // std::cerr << "ModelDataTableDialog::viewClicked: " << index.row() << ", " << index.column() << std::endl;
209 emit scrollToFrame(m_table->getFrameForModelIndex(index)); 209 emit scrollToFrame(m_table->getFrameForModelIndex(index));
210 } 210 }
211 211
212 void 212 void
213 ModelDataTableDialog::viewPressed(const QModelIndex &index) 213 ModelDataTableDialog::viewPressed(const QModelIndex &index)
214 { 214 {
215 std::cerr << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << std::endl; 215 // std::cerr << "ModelDataTableDialog::viewPressed: " << index.row() << ", " << index.column() << std::endl;
216 } 216 }
217 217
218 void 218 void
219 ModelDataTableDialog::currentChanged(const QModelIndex &current, 219 ModelDataTableDialog::currentChanged(const QModelIndex &current,
220 const QModelIndex &previous) 220 const QModelIndex &previous)
221 { 221 {
222 std::cerr << "ModelDataTableDialog::currentChanged: from " 222 // std::cerr << "ModelDataTableDialog::currentChanged: from "
223 << previous.row() << ", " << previous.column() 223 // << previous.row() << ", " << previous.column()
224 << " to " << current.row() << ", " << current.column() 224 // << " to " << current.row() << ", " << current.column()
225 << std::endl; 225 // << std::endl;
226 m_currentRow = current.row(); 226 m_currentRow = current.row();
227 m_table->setCurrentRow(m_currentRow); 227 m_table->setCurrentRow(m_currentRow);
228 } 228 }
229 229
230 void 230 void
261 } 261 }
262 262
263 void 263 void
264 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index) 264 ModelDataTableDialog::currentChangedThroughResort(const QModelIndex &index)
265 { 265 {
266 std::cerr << "ModelDataTableDialog::currentChangedThroughResort: row = " << index.row() << std::endl; 266 // std::cerr << "ModelDataTableDialog::currentChangedThroughResort: row = " << index.row() << std::endl;
267 // m_tableView->scrollTo(index); 267 // m_tableView->scrollTo(index);
268 makeCurrent(index.row()); 268 makeCurrent(index.row());
269 } 269 }
270 270
271 271