MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / updateLineNumberArea

Method updateLineNumberArea

gui/codeeditor.cpp:375–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void CodeEditor::updateLineNumberArea(const QRect &rect, int dy)
376{
377 if (dy)
378 mLineNumberArea->scroll(0, dy);
379 else
380 mLineNumberArea->update(0, rect.y(), mLineNumberArea->width(), rect.height());
381
382 if (rect.contains(viewport()->rect()))
383 updateLineNumberAreaWidth(0);
384}
385
386void CodeEditor::resizeEvent(QResizeEvent *event)
387{

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected