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

Method setText

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

Source from the content-addressed store, hash-verified

578}
579
580void TabWidget::setText(const QString &text)
581{
582 if (auto editor = d->currentTextEditor()) {
583 int pos = editor->cursorPosition();
584 editor->setText(text);
585 editor->gotoPosition(pos);
586 }
587}
588
589QString TabWidget::fileText(const QString &fileName, bool *success)
590{

Callers 15

configDoneMethod · 0.45
initializeUiMethod · 0.45
setupUiMethod · 0.45
showFileDialogMethod · 0.45
setupUiMethod · 0.45
initFrameTitleMethod · 0.45
initUiMethod · 0.45
setLLmInfoMethod · 0.45
setupUiMethod · 0.45
setNameMethod · 0.45
setPasswdMethod · 0.45
setTitleTextMethod · 0.45

Calls 3

currentTextEditorMethod · 0.80
cursorPositionMethod · 0.45
gotoPositionMethod · 0.45

Tested by

no test coverage detected