MCPcopy Create free account
hub / github.com/IgKh/katvan / updateLineNumberGutters

Method updateLineNumberGutters

core/katvan_editor.cpp:1378–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1376}
1377
1378void Editor::updateLineNumberGutters()
1379{
1380 QRect cr = contentsRect();
1381 d_leftLineNumberGutter->update(0, cr.y(), d_leftLineNumberGutter->width(), cr.height());
1382 d_rightLineNumberGutter->update(0, cr.y(), d_rightLineNumberGutter->width(), cr.height());
1383
1384 updateLineNumberGutterWidth();
1385
1386 int dy = verticalScrollBar()->sliderPosition();
1387 if (dy >= 0) {
1388 d_leftLineNumberGutter->scroll(0, dy);
1389 d_rightLineNumberGutter->scroll(0, dy);
1390 }
1391}
1392
1393QTextEdit::ExtraSelection Editor::makeBracketHighlight(int pos)
1394{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected