| 247 | } |
| 248 | |
| 249 | void 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 | |
| 263 | void GitPlugin::ctxRebase() |
| 264 | { |
nothing calls this directly
no test coverage detected