| 165 | } |
| 166 | |
| 167 | void 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 | |
| 178 | bool TextEditor::reload(const QString &encode) |
| 179 | { |
no test coverage detected