MCPcopy Create free account
hub / github.com/KDAB/GammaRay / sidebarWidth

Method sidebarWidth

ui/codeeditor/codeeditor.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int CodeEditor::sidebarWidth() const
78{
79 int digits = 1;
80 auto count = blockCount();
81 while (count >= 10) {
82 ++digits;
83 count /= 10;
84 }
85 return 4 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits + foldingBarWidth();
86}
87
88int CodeEditor::foldingBarWidth() const
89{

Callers 1

sizeHintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected