| 533 | } |
| 534 | |
| 535 | void DiffTextWindow::setHorizScrollOffset(qint32 horizScrollOffset) |
| 536 | { |
| 537 | d->m_horizScrollOffset = std::max(0, horizScrollOffset); |
| 538 | |
| 539 | if(d->m_bSelectionInProgress && d->m_selection.isValidFirstLine()) |
| 540 | { |
| 541 | LineRef line; |
| 542 | qint32 pos; |
| 543 | convertToLinePos(d->m_lastKnownMousePos.x(), d->m_lastKnownMousePos.y(), line, pos); |
| 544 | d->m_selection.end(line, pos); |
| 545 | } |
| 546 | |
| 547 | update(); |
| 548 | } |
| 549 | |
| 550 | qint32 DiffTextWindow::getMaxTextWidth() const |
| 551 | { |
nothing calls this directly
no test coverage detected