Inbound height should be in lines.
| 508 | } |
| 509 | // Inbound height should be in lines. |
| 510 | void 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 | |
| 521 | void KDiff3App::scrollDiffTextWindow(qint32 deltaX, qint32 deltaY) |
| 522 | { |