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

Method updateLineNumberGutterWidth

core/katvan_editor.cpp:1361–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361void Editor::updateLineNumberGutterWidth()
1362{
1363 int gutterWidth = lineNumberGutterWidth();
1364
1365 int leftMargin = 0;
1366 if (d_leftLineNumberGutter->isVisible()) {
1367 leftMargin = gutterWidth + 1;
1368 }
1369
1370 int rightMargin = 0;
1371 if (d_rightLineNumberGutter->isVisible()) {
1372 rightMargin = gutterWidth + 1;
1373 }
1374
1375 setViewportMargins(leftMargin, 0, rightMargin, 0);
1376}
1377
1378void Editor::updateLineNumberGutters()
1379{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected