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

Method resizeDiffTextWindowHeight

src/pdiff.cpp:510–519  ·  view source on GitHub ↗

Inbound height should be in lines.

Source from the content-addressed store, hash-verified

508}
509// Inbound height should be in lines.
510void KDiff3App::resizeDiffTextWindowHeight(LineType newHeight)
511{
512 m_DTWHeight = newHeight;
513
514 DiffTextWindow::mVScrollBar->setRange(0, std::max(0, (m_neededLines + 1 - newHeight)));
515 DiffTextWindow::mVScrollBar->setPageStep(newHeight);
516 m_pOverview->setRange(DiffTextWindow::mVScrollBar->value(), newHeight);
517
518 setHScrollBarRange();
519}
520
521void KDiff3App::scrollDiffTextWindow(qint32 deltaX, qint32 deltaY)
522{

Callers

nothing calls this directly

Calls 2

setRangeMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected