Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 682:1a0dfcbffaf1
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:06:40 +0000 |
parents | 4806715f7a19 |
children | 97ea68f62c1f e4773943c9c1 |
comparison
equal
deleted
inserted
replaced
681:eaf4446a1bef | 682:1a0dfcbffaf1 |
---|---|
214 | 214 |
215 // should only scroll if the desired row is not currently visible | 215 // should only scroll if the desired row is not currently visible |
216 | 216 |
217 // should only select if no part of the desired row is currently selected | 217 // should only select if no part of the desired row is currently selected |
218 | 218 |
219 // std::cerr << "rh = " << rh << ", row = " << row << ", scrolling to " | 219 // cerr << "rh = " << rh << ", row = " << row << ", scrolling to " |
220 // << topRow << std::endl; | 220 // << topRow << endl; |
221 | 221 |
222 int pos = m_tableView->rowViewportPosition(row); | 222 int pos = m_tableView->rowViewportPosition(row); |
223 | 223 |
224 if (pos < 0 || pos >= m_tableView->height() - rh) { | 224 if (pos < 0 || pos >= m_tableView->height() - rh) { |
225 m_tableView->scrollTo(m_table->index(topRow, 0)); | 225 m_tableView->scrollTo(m_table->index(topRow, 0)); |