| 293 | } |
| 294 | |
| 295 | void Scratchpad::openScratchDocument(const QString& scratchFilePath, const QString& scratchFileName) |
| 296 | { |
| 297 | auto* const document = core()->documentController()->openDocument(QUrl::fromLocalFile(scratchFilePath)); |
| 298 | if (document) { |
| 299 | document->setPrettyName(i18nc("prefix to distinguish scratch tabs", "scratch:%1", scratchFileName)); |
| 300 | } else { |
| 301 | qCWarning(PLUGIN_SCRATCHPAD) << "could not open scratch document at" << scratchFilePath; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | #include "scratchpad.moc" |
| 306 | #include "moc_scratchpad.cpp" |
nothing calls this directly
no test coverage detected