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

Method additionalMenuEntries

plugins/git/gitplugin.cpp:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void GitPlugin::additionalMenuEntries(QMenu* menu, const QList<QUrl>& urls)
250{
251 m_urls = urls;
252
253 QDir dir=urlDir(urls);
254 bool hasSt = hasStashes(dir);
255
256 menu->addAction(i18nc("@action:inmenu", "Rebase"), this, SLOT(ctxRebase()));
257 menu->addSeparator()->setText(i18nc("@title:menu", "Git Stashes"));
258 menu->addAction(i18nc("@action:inmenu", "Stash Manager"), this, SLOT(ctxStashManager()))->setEnabled(hasSt);
259 menu->addAction(QIcon::fromTheme(QStringLiteral("vcs-stash")), i18nc("@action:inmenu", "Push Stash"), this, SLOT(ctxPushStash()));
260 menu->addAction(QIcon::fromTheme(QStringLiteral("vcs-stash-pop")), i18nc("@action:inmenu", "Pop Stash"), this, SLOT(ctxPopStash()))->setEnabled(hasSt);
261}
262
263void GitPlugin::ctxRebase()
264{

Callers

nothing calls this directly

Calls 4

urlDirFunction · 0.70
addActionMethod · 0.45
setTextMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected