| 31 | } |
| 32 | |
| 33 | QRect 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 | |
| 41 | KTextEditor::Cursor KTextEditorHelpers::extractCursor(const QString& input, int* pathLength) |
| 42 | { |
nothing calls this directly
no test coverage detected