| 216 | } |
| 217 | |
| 218 | void ScreenWindow::scrollTo( int line ) |
| 219 | { |
| 220 | int maxCurrentLineNumber = lineCount() - windowLines(); |
| 221 | line = qBound(0,line,maxCurrentLineNumber); |
| 222 | |
| 223 | const int delta = line - _currentLine; |
| 224 | _currentLine = line; |
| 225 | |
| 226 | // keep track of number of lines scrolled by, |
| 227 | // this can be reset by calling resetScrollCount() |
| 228 | _scrollCount += delta; |
| 229 | |
| 230 | _bufferNeedsUpdate = true; |
| 231 | |
| 232 | emit scrolled(_currentLine); |
| 233 | } |
| 234 | |
| 235 | void ScreenWindow::setTrackOutput(bool trackOutput) |
| 236 | { |
no outgoing calls
no test coverage detected