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

Method reload

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

Source from the content-addressed store, hash-verified

165}
166
167void TextEditor::reload()
168{
169 int line = 0, index = 0;
170 getCursorPosition(&line, &index);
171 const auto &markers = d->allMarkers();
172 d->readFile("");
173 d->setMarkers(markers);
174 setCursorPosition(line, index);
175 emit textChanged();
176}
177
178bool TextEditor::reload(const QString &encode)
179{

Callers 2

handleEncodeChangedMethod · 0.45
reloadFileMethod · 0.45

Calls 7

getCursorPositionFunction · 0.85
allMarkersMethod · 0.80
setMarkersMethod · 0.80
QStringClass · 0.50
readFileMethod · 0.45
setIconMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected