| 147 | } |
| 148 | |
| 149 | int ScreenWindow::currentLine() const { |
| 150 | if (lineCount() >= windowLines()) { |
| 151 | return qBound(0, _currentLine, lineCount() - windowLines()); |
| 152 | } |
| 153 | return 0; |
| 154 | } |
| 155 | |
| 156 | void ScreenWindow::scrollBy(RelativeScrollMode mode, int amount) { |
| 157 | if (mode == ScrollLines) { |
no outgoing calls
no test coverage detected