Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.cpp @ 706:97ea68f62c1f imaf_enc
Merge from default branch
author | Chris Cannam |
---|---|
date | Thu, 05 Dec 2013 09:47:02 +0000 |
parents | 3437e0fad7ae 1a0dfcbffaf1 |
children | c02c51ae5238 |
comparison
equal
deleted
inserted
replaced
678:26c5f7fd4807 | 706:97ea68f62c1f |
---|---|
213 | 213 |
214 // should only scroll if the desired row is not currently visible | 214 // should only scroll if the desired row is not currently visible |
215 | 215 |
216 // should only select if no part of the desired row is currently selected | 216 // should only select if no part of the desired row is currently selected |
217 | 217 |
218 // std::cerr << "rh = " << rh << ", row = " << row << ", scrolling to " | 218 // cerr << "rh = " << rh << ", row = " << row << ", scrolling to " |
219 // << topRow << std::endl; | 219 // << topRow << endl; |
220 | 220 |
221 int pos = m_tableView->rowViewportPosition(row); | 221 int pos = m_tableView->rowViewportPosition(row); |
222 | 222 |
223 if (pos < 0 || pos >= m_tableView->height() - rh) { | 223 if (pos < 0 || pos >= m_tableView->height() - rh) { |
224 m_tableView->scrollTo(m_table->index(topRow, 0)); | 224 m_tableView->scrollTo(m_table->index(topRow, 0)); |