MCPcopy Create free account
hub / github.com/KDE/kdevelop / rangeForMark

Method rangeForMark

plugins/patchreview/patchhighlighter.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230QPair<KTextEditor::MovingRange*, KompareDiff2::Difference*>
231PatchHighlighter::rangeForMark(const KTextEditor::Mark& mark) const
232{
233 if (!m_applying) {
234 for (auto it = m_ranges.constBegin(); it != m_ranges.constEnd(); ++it) {
235 if (it.value() && it.key()->start().line() <= mark.line && mark.line <= it.key()->end().line()) {
236 return qMakePair(it.key(), it.value());
237 }
238 }
239 }
240
241 return qMakePair(nullptr, nullptr);
242}
243
244void PatchHighlighter::markToolTipRequested( KTextEditor::Document*, const KTextEditor::Mark& mark, QPoint pos, bool& handled ) {
245 if( handled )

Callers

nothing calls this directly

Calls 7

constBeginMethod · 0.80
constEndMethod · 0.80
valueMethod · 0.45
lineMethod · 0.45
startMethod · 0.45
keyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected