MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / scrollTo

Method scrollTo

AdaptixClient/Libs/Konsole/ScreenWindow.cpp:168–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void 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
182void ScreenWindow::setTrackOutput(bool trackOutput) {
183 _trackOutput = trackOutput;

Callers 4

searchMethod · 0.80
scrollToEndMethod · 0.80
emitSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected