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

Method openFileWithDocument

src/plugins/codeeditor/gui/texteditor.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void TextEditor::openFileWithDocument(const QString &fileName, const QsciDocument &doc)
68{
69 if (d->fileName == fileName)
70 return;
71
72 d->fileName = fileName;
73 setDocument(doc);
74 d->loadLexer();
75 d->initLanguageClient();
76 d->isAutoCompletionEnabled = true;
77
78 if (isModified())
79 emit modificationChanged(true);
80}
81
82QString TextEditor::getFile() const
83{

Callers 1

createEditorMethod · 0.80

Calls 2

loadLexerMethod · 0.80
initLanguageClientMethod · 0.80

Tested by

no test coverage detected