Gerrit: Fix UI text

Change-Id: I5be1fc3629961dbc224d65d1bc52efc9a4613d2a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Leena Miettinen
2018-02-05 17:08:45 +01:00
committed by Orgad Shaneh
parent 4f537a5ea3
commit 88a889d45a
2 changed files with 11 additions and 11 deletions

View File

@@ -226,22 +226,22 @@ void GerritPushDialog::onRemoteChanged(bool force)
m_currentSupportsWip = supportsWip; m_currentSupportsWip = supportsWip;
m_ui->wipCheckBox->setEnabled(supportsWip); m_ui->wipCheckBox->setEnabled(supportsWip);
if (supportsWip) { if (supportsWip) {
m_ui->wipCheckBox->setToolTip(tr("Checked - Mark change as WIP\n" m_ui->wipCheckBox->setToolTip(tr("Checked - Mark change as WIP.\n"
"Unchecked - Mark change as ready\n" "Unchecked - Mark change as ready for review.\n"
"Partially checked - Do not change current state")); "Partially checked - Do not change current state."));
m_ui->draftCheckBox->setTristate(true); m_ui->draftCheckBox->setTristate(true);
if (m_ui->draftCheckBox->checkState() != Qt::Checked) if (m_ui->draftCheckBox->checkState() != Qt::Checked)
m_ui->draftCheckBox->setCheckState(Qt::PartiallyChecked); m_ui->draftCheckBox->setCheckState(Qt::PartiallyChecked);
m_ui->draftCheckBox->setToolTip(tr("Checked - Mark change as private\n" m_ui->draftCheckBox->setToolTip(tr("Checked - Mark change as private.\n"
"Unchecked - Unmark change as private\n" "Unchecked - Remove mark.\n"
"Partially checked - Do not change current state")); "Partially checked - Do not change current state."));
} else { } else {
m_ui->wipCheckBox->setToolTip(tr("Supported on Gerrit 2.15 and up")); m_ui->wipCheckBox->setToolTip(tr("Supported on Gerrit 2.15 and later."));
m_ui->draftCheckBox->setTristate(false); m_ui->draftCheckBox->setTristate(false);
if (m_ui->draftCheckBox->checkState() != Qt::Checked) if (m_ui->draftCheckBox->checkState() != Qt::Checked)
m_ui->draftCheckBox->setCheckState(Qt::Unchecked); m_ui->draftCheckBox->setCheckState(Qt::Unchecked);
m_ui->draftCheckBox->setToolTip(tr("Checked - Mark change as draft\n" m_ui->draftCheckBox->setToolTip(tr("Checked - The change is a draft.\n"
"Unchecked - Unmark change as draft")); "Unchecked - The change is not a draft."));
} }
} }

View File

@@ -82,14 +82,14 @@ Unchecked - Unmark change as private
Semi-checked - Do not change current state</string> Semi-checked - Do not change current state</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Draft/Private</string> <string>&amp;Draft/private</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="wipCheckBox"> <widget class="QCheckBox" name="wipCheckBox">
<property name="text"> <property name="text">
<string>&amp;Work-In-Progress</string> <string>&amp;Work-in-progress</string>
</property> </property>
<property name="tristate"> <property name="tristate">
<bool>true</bool> <bool>true</bool>