MCPcopy Create free account
hub / github.com/KDE/labplot / fillShareMenu

Method fillShareMenu

src/frontend/MainWin.cpp:2497–2507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495
2496#ifdef HAVE_PURPOSE
2497void 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
2509void MainWin::shareActionFinished(const QJsonObject& output, int error, const QString& message) {
2510 if (error)

Callers

nothing calls this directly

Calls 5

clearMethod · 0.45
modelMethod · 0.45
nameMethod · 0.45
toStringMethod · 0.45
fileNameMethod · 0.45

Tested by

no test coverage detected