MCPcopy Create free account
hub / github.com/KDE/kdiff3 / setHorizScrollOffset

Method setHorizScrollOffset

src/difftextwindow.cpp:535–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void 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
550qint32 DiffTextWindow::getMaxTextWidth() const
551{

Callers

nothing calls this directly

Calls 2

isValidFirstLineMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected