| 1281 | } |
| 1282 | |
| 1283 | void DiffWidget::jumpToNextFile() |
| 1284 | { |
| 1285 | const int block = m_left->firstVisibleBlockNumber(); |
| 1286 | int nextFileLineNo = 0; |
| 1287 | for (int i : m_linesWithFileName) { |
| 1288 | if (i > block) { |
| 1289 | nextFileLineNo = i; |
| 1290 | break; |
| 1291 | } |
| 1292 | } |
| 1293 | |
| 1294 | QScopedValueRollback r(m_stopScrollSync, true); |
| 1295 | m_left->scrollToBlock(nextFileLineNo, true); |
| 1296 | if (m_style == SideBySide) { |
| 1297 | m_right->scrollToBlock(nextFileLineNo, true); |
| 1298 | } |
| 1299 | } |
| 1300 | |
| 1301 | void DiffWidget::jumpToPrevFile() |
| 1302 | { |
nothing calls this directly
no test coverage detected