| 2495 | |
| 2496 | #ifdef HAVE_PURPOSE |
| 2497 | void MainWin::fillShareMenu() { |
| 2498 | if (!m_shareMenu) |
| 2499 | return; |
| 2500 | |
| 2501 | m_shareMenu->clear(); // clear the menu, it will be refilled with the new file URL below |
| 2502 | QMimeType mime; |
| 2503 | m_shareMenu->model()->setInputData( |
| 2504 | QJsonObject{{QStringLiteral("mimeType"), mime.name()}, {QStringLiteral("urls"), QJsonArray{QUrl::fromLocalFile(m_project->fileName()).toString()}}}); |
| 2505 | m_shareMenu->model()->setPluginType(QStringLiteral("Export")); |
| 2506 | m_shareMenu->reload(); |
| 2507 | } |
| 2508 | |
| 2509 | void MainWin::shareActionFinished(const QJsonObject& output, int error, const QString& message) { |
| 2510 | if (error) |