| 1359 | } |
| 1360 | |
| 1361 | void 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 | |
| 1378 | void Editor::updateLineNumberGutters() |
| 1379 | { |
nothing calls this directly
no outgoing calls
no test coverage detected