forked from qt-creator/qt-creator
Git: Readd shortcuts for commit
Change-Id: I290d2fb265df29c3cce44fae85af2366ac918e99 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
2f936968e7
commit
ef98345241
@@ -110,9 +110,9 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
|
|||||||
|
|
||||||
if (data.hasRemotes && commitType != FixupCommit) {
|
if (data.hasRemotes && commitType != FixupCommit) {
|
||||||
QMenu *menu = new QMenu(this);
|
QMenu *menu = new QMenu(this);
|
||||||
menu->addAction(tr("Commit only"), this, SLOT(commitOnlySlot()));
|
menu->addAction(tr("&Commit only"), this, SLOT(commitOnlySlot()));
|
||||||
menu->addAction(tr("Commit and Push"), this, SLOT(commitAndPushSlot()));
|
menu->addAction(tr("Commit and &Push"), this, SLOT(commitAndPushSlot()));
|
||||||
menu->addAction(tr("Commit and Push to Gerrit"), this, SLOT(commitAndPushToGerritSlot()));
|
menu->addAction(tr("Commit and Push to &Gerrit"), this, SLOT(commitAndPushToGerritSlot()));
|
||||||
addSubmitButtonMenu(menu);
|
addSubmitButtonMenu(menu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -172,11 +172,11 @@ QString GitSubmitEditorWidget::cleanupDescription(const QString &input) const
|
|||||||
QString GitSubmitEditorWidget::commitName() const
|
QString GitSubmitEditorWidget::commitName() const
|
||||||
{
|
{
|
||||||
if (m_pushAction == NormalPush)
|
if (m_pushAction == NormalPush)
|
||||||
return tr("Commit and Push");
|
return tr("&Commit and Push");
|
||||||
else if (m_pushAction == PushToGerrit)
|
else if (m_pushAction == PushToGerrit)
|
||||||
return tr("Commit and Push to Gerrit");
|
return tr("&Commit and Push to Gerrit");
|
||||||
|
|
||||||
return tr("Commit");
|
return tr("&Commit");
|
||||||
}
|
}
|
||||||
|
|
||||||
void GitSubmitEditorWidget::authorInformationChanged()
|
void GitSubmitEditorWidget::authorInformationChanged()
|
||||||
|
|||||||
Reference in New Issue
Block a user