Gerrit - Added Shortcuts to Gerrit Dialog

Change-Id: I048ea80b48d693b7d44769e1f538d0c0050dbe2d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Petar Perisin
2013-05-26 15:05:39 +02:00
parent b28ae07274
commit e835b57fc2

View File

@@ -164,7 +164,7 @@ GerritDialog::GerritDialog(const QSharedPointer<GerritParameters> &p,
m_displayButton = addActionButton(QString(), SLOT(slotFetchDisplay()));
m_cherryPickButton = addActionButton(QString(), SLOT(slotFetchCherryPick()));
m_checkoutButton = addActionButton(QString(), SLOT(slotFetchCheckout()));
m_refreshButton = addActionButton(tr("Refresh"), SLOT(slotRefresh()));
m_refreshButton = addActionButton(tr("&Refresh"), SLOT(slotRefresh()));
connect(m_model, SIGNAL(refreshStateChanged(bool)),
m_refreshButton, SLOT(setDisabled(bool)));
@@ -202,13 +202,13 @@ void GerritDialog::displayRepositoryPath()
if (m_repositoryChooser->path().isEmpty())
m_repositoryChooser->setPath(m_parameters->repositoryPath);
if (m_parameters->promptPath) {
m_displayButton->setText(tr("Diff..."));
m_cherryPickButton->setText(tr("Cherry Pick..."));
m_checkoutButton->setText(tr("Checkout..."));
m_displayButton->setText(tr("&Diff..."));
m_cherryPickButton->setText(tr("Cherry &Pick..."));
m_checkoutButton->setText(tr("&Checkout..."));
} else {
m_displayButton->setText(tr("Diff"));
m_cherryPickButton->setText(tr("Cherry Pick"));
m_checkoutButton->setText(tr("Checkout"));
m_displayButton->setText(tr("&Diff"));
m_cherryPickButton->setText(tr("Cherry &Pick"));
m_checkoutButton->setText(tr("&Checkout"));
}
}