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

Method selectionRange

src/plugins/codeeditor/gui/tabwidget.cpp:566–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566Edit::Range TabWidget::selectionRange(const QString &fileName, bool &found)
567{
568 if (auto editor = d->findEditor(fileName)) {
569 found = true;
570 Edit::Range range;
571 editor->getSelection(&range.start.line, &range.start.column,
572 &range.end.line, &range.end.column);
573 return range;
574 }
575
576 found = false;
577 return {};
578}
579
580void TabWidget::setText(const QString &text)
581{

Callers 2

calculateTextRangeMethod · 0.45
InputEditMethod · 0.45

Calls 2

findEditorMethod · 0.80
getSelectionMethod · 0.80

Tested by

no test coverage detected