VCS: Added a virtual commitName() method, for VCS that have unusual semantics (e.g. Check In for ClearCase)

Merge-request: 289
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Orgad Shaneh
2011-05-03 14:58:46 +02:00
committed by Tobias Hunger
parent e237a84339
commit 461aa084df
2 changed files with 9 additions and 2 deletions

View File

@@ -498,8 +498,9 @@ void SubmitEditorWidget::updateSubmitAction()
// Update button text.
const int fileCount = m_d->m_ui.fileView->model()->rowCount();
const QString msg = checkedCount ?
tr("&Commit %1/%n File(s)", 0, fileCount).arg(checkedCount) :
tr("Commit");
tr("%1 %2/%n File(s)", 0, fileCount)
.arg(commitName()).arg(checkedCount) :
commitName();
emit submitActionTextChanged(msg);
}
}
@@ -575,6 +576,11 @@ bool SubmitEditorWidget::canSubmit() const
return m_d->m_emptyFileListEnabled || checkedCount > 0;
}
QString SubmitEditorWidget::commitName() const
{
return tr("&Commit");
}
void SubmitEditorWidget::addSubmitFieldWidget(SubmitFieldWidget *f)
{
if (!m_d->m_fieldLayout) {