Commit 461aa084 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

VCS: Added a virtual commitName() method, for VCS that have unusual semantics...

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

Merge-request: 289
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent e237a843
......@@ -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) {
......
......@@ -128,6 +128,7 @@ private slots:
protected:
virtual QString cleanupDescription(const QString &) const;
virtual void changeEvent(QEvent *e);
virtual QString commitName() const;
void insertTopWidget(QWidget *w);
protected slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment