mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-1723 keep only tr()
This commit is contained in:
parent
f4e11fa6ef
commit
60f9e96571
@ -350,7 +350,7 @@ void OutputCalibrationPage::setWizardPage()
|
|||||||
ui->motorInfo->setText(tr("<html><head/><body><p><span style=\" font-size:10pt;\">To find </span><span style=\" font-size:10pt; font-weight:600;\">the neutral rate for this reversable motor</span><span style=\" font-size:10pt;\">, press the Start button below and slide the slider to the right or left until you find the value where the motor don't start. <br/><br/>When done press button again to stop.</span></p></body></html>"));
|
ui->motorInfo->setText(tr("<html><head/><body><p><span style=\" font-size:10pt;\">To find </span><span style=\" font-size:10pt; font-weight:600;\">the neutral rate for this reversable motor</span><span style=\" font-size:10pt;\">, press the Start button below and slide the slider to the right or left until you find the value where the motor don't start. <br/><br/>When done press button again to stop.</span></p></body></html>"));
|
||||||
}
|
}
|
||||||
} else if (currentPageIndex == 2) {
|
} else if (currentPageIndex == 2) {
|
||||||
ui->servoPWMValue->setText(QString(tr("Output value : <b>%1</b> µs")).arg(m_actuatorSettings[currentChannel].channelNeutral));
|
ui->servoPWMValue->setText(tr("Output value : <b>%1</b> µs").arg(m_actuatorSettings[currentChannel].channelNeutral));
|
||||||
if (m_actuatorSettings[currentChannel].channelMax < m_actuatorSettings[currentChannel].channelMin &&
|
if (m_actuatorSettings[currentChannel].channelMax < m_actuatorSettings[currentChannel].channelMin &&
|
||||||
!ui->reverseCheckbox->isChecked()) {
|
!ui->reverseCheckbox->isChecked()) {
|
||||||
ui->reverseCheckbox->setChecked(true);
|
ui->reverseCheckbox->setChecked(true);
|
||||||
@ -528,7 +528,7 @@ void OutputCalibrationPage::debugLogChannelValues()
|
|||||||
void OutputCalibrationPage::on_motorNeutralSlider_valueChanged(int value)
|
void OutputCalibrationPage::on_motorNeutralSlider_valueChanged(int value)
|
||||||
{
|
{
|
||||||
Q_UNUSED(value);
|
Q_UNUSED(value);
|
||||||
ui->motorPWMValue->setText(QString(tr("Output value : <b>%1</b> µs")).arg(value));
|
ui->motorPWMValue->setText(tr("Output value : <b>%1</b> µs").arg(value));
|
||||||
|
|
||||||
if (ui->motorNeutralButton->isChecked()) {
|
if (ui->motorNeutralButton->isChecked()) {
|
||||||
quint16 value = ui->motorNeutralSlider->value();
|
quint16 value = ui->motorNeutralSlider->value();
|
||||||
@ -553,7 +553,7 @@ void OutputCalibrationPage::on_servoCenterAngleSlider_valueChanged(int position)
|
|||||||
m_calibrationUtil->setChannelOutputValue(value);
|
m_calibrationUtil->setChannelOutputValue(value);
|
||||||
quint16 channel = getCurrentChannel();
|
quint16 channel = getCurrentChannel();
|
||||||
m_actuatorSettings[channel].channelNeutral = value;
|
m_actuatorSettings[channel].channelNeutral = value;
|
||||||
ui->servoPWMValue->setText(QString(tr("Output value : <b>%1</b> µs")).arg(value));
|
ui->servoPWMValue->setText(tr("Output value : <b>%1</b> µs").arg(value));
|
||||||
|
|
||||||
// Adjust min and max
|
// Adjust min and max
|
||||||
if (ui->reverseCheckbox->isChecked()) {
|
if (ui->reverseCheckbox->isChecked()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user