MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / updateRequest

Method updateRequest

src/plugins/git/gui/giteditor.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void GitEditorPrivate::updateRequest(const QRect &r, int dy)
113{
114 if (dy) {
115 extraArea->scroll(0, dy);
116 } else if (r.width() > 4) { // wider than cursor width, not just cursor blinking
117 extraArea->update(0, r.y(), extraArea->width(), r.height());
118 }
119
120 if (r.contains(q->viewport()->rect()))
121 updateExtraAreaWidth();
122}
123
124QTextBlock GitEditorPrivate::nextVisibleBlock(const QTextBlock &block) const
125{

Callers

nothing calls this directly

Calls 4

scrollMethod · 0.80
widthMethod · 0.80
updateMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected