| 353 | } |
| 354 | |
| 355 | void OpenWithPlugin::delegateToParts(const QString& pluginId) const |
| 356 | { |
| 357 | auto prefName = pluginId; |
| 358 | if (isTextPart(pluginId)) { |
| 359 | // If the user chose a KTE part, lets make sure we're creating a TextDocument instead of |
| 360 | // a PartDocument by passing no preferredpart to the documentcontroller |
| 361 | // TODO: Solve this rather inside DocumentController |
| 362 | prefName.clear(); |
| 363 | } |
| 364 | for (const QUrl& u : std::as_const(m_urls)) { |
| 365 | ICore::self()->documentController()->openDocument(u, prefName); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | void OpenWithPlugin::openPart(const QString& pluginId, const QString& name) |
| 370 | { |
nothing calls this directly
no test coverage detected