| 166 | } |
| 167 | |
| 168 | void ScreenWindow::scrollTo(int line) { |
| 169 | int maxCurrentLineNumber = lineCount() - windowLines(); |
| 170 | line = qBound(0, line, maxCurrentLineNumber); |
| 171 | |
| 172 | const int delta = line - _currentLine; |
| 173 | _currentLine = line; |
| 174 | |
| 175 | _scrollCount += delta; |
| 176 | |
| 177 | _bufferNeedsUpdate = true; |
| 178 | |
| 179 | Q_EMIT scrolled(_currentLine); |
| 180 | } |
| 181 | |
| 182 | void ScreenWindow::setTrackOutput(bool trackOutput) { |
| 183 | _trackOutput = trackOutput; |
no outgoing calls
no test coverage detected