MCPcopy Create free account
hub / github.com/KDE/kdevelop / addUrlToMenu

Method addUrlToMenu

plugins/grepview/grepdialog.cpp:343–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void GrepDialog::addUrlToMenu(QMenu* menu, const QUrl& url)
344{
345 QAction* action = menu->addAction(m_plugin->core()->projectController()->prettyFileName(url, KDevelop::IProjectController::FormatPlain));
346 action->setData(QVariant(url.toString(QUrl::PreferLocalFile)));
347 connect(action, &QAction::triggered, this, &GrepDialog::synchronizeDirActionTriggered);
348}
349
350void GrepDialog::addStringToMenu(QMenu* menu, const QString& string)
351{

Callers

nothing calls this directly

Calls 7

projectControllerMethod · 0.80
QVariantClass · 0.50
addActionMethod · 0.45
prettyFileNameMethod · 0.45
coreMethod · 0.45
setDataMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected