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

Method itemBoundingRect

kdevplatform/util/texteditorhelpers.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33QRect KTextEditorHelpers::itemBoundingRect(const KTextEditor::View* view, const KTextEditor::Range& itemRange)
34{
35 QPoint startPoint = view->mapToGlobal(view->cursorToCoordinate(itemRange.start()));
36 QPoint endPoint = view->mapToGlobal(view->cursorToCoordinate(itemRange.end()));
37 endPoint.ry() += lineHeight(view, itemRange.start().line());
38 return QRect(startPoint, endPoint);
39}
40
41KTextEditor::Cursor KTextEditorHelpers::extractCursor(const QString& input, int* pathLength)
42{

Callers

nothing calls this directly

Calls 5

lineHeightFunction · 0.85
QRectClass · 0.85
startMethod · 0.45
endMethod · 0.45
lineMethod · 0.45

Tested by

no test coverage detected