MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / updateLineNumberArea

Method updateLineNumberArea

src/ui/codeeditor.cpp:170–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void CodeEditor::updateLineNumberArea(const QRect& rect, int dy)
171{
172 if(dy)
173 lineNumberArea->scroll(0, dy);
174 else
175 lineNumberArea->update(0, rect.y(), lineNumberArea->width(), rect.height());
176
177 if(rect.contains(viewport()->rect()))
178 updateLineNumberAreaWidth(0);
179}
180
181void CodeEditor::keyPressEvent(QKeyEvent* e)
182{

Callers

nothing calls this directly

Calls 2

yMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected