MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / scrollTo

Method scrollTo

3rdparty/unioncode-qtermwidget-0.14.1/lib/ScreenWindow.cpp:218–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void 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
235void ScreenWindow::setTrackOutput(bool trackOutput)
236{

Callers 8

scrollToEndMethod · 0.80
keyPressEventMethod · 0.80
matchFoundMethod · 0.80
processLocalBranchMethod · 0.80
handleFocusIndexMethod · 0.80
selectMethod · 0.80
handleFocusIndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected