mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Fix unintentional leak slider display not initially updating
This commit is contained in:
parent
2fa1f46f53
commit
7a36de4865
@ -225,13 +225,8 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Profile *_profile) :
|
||||
ui->maskLeaks4Slider->setValue(profile->cpap->custom4cmH2OLeaks()*10.0);
|
||||
ui->maskLeaks20Slider->setValue(profile->cpap->custom20cmH2OLeaks()*10.0);
|
||||
|
||||
// if (b) {
|
||||
// ui->maskLeaks4Label->setText(tr("%1 %2").arg(profile->cpap->custom4cmH2OLeaks(), 5, 'f', 1).arg(STR_UNIT_LPM));
|
||||
// ui->maskLeaks20Label->setText(tr("%1 %2").arg(profile->cpap->custom20cmH2OLeaks(), 5, 'f', 1).arg(STR_UNIT_LPM));
|
||||
// } else {
|
||||
// ui->maskLeaks4Label->setText(STR_TR_Default);
|
||||
// ui->maskLeaks20Label->setText(STR_TR_Default);
|
||||
// }
|
||||
ui->maskLeaks4Label->setText(tr("%1 %2").arg(profile->cpap->custom4cmH2OLeaks(), 5, 'f', 1).arg(STR_UNIT_LPM));
|
||||
ui->maskLeaks20Label->setText(tr("%1 %2").arg(profile->cpap->custom20cmH2OLeaks(), 5, 'f', 1).arg(STR_UNIT_LPM));
|
||||
|
||||
/* QLocale locale=QLocale::system();
|
||||
QString shortformat=locale.dateFormat(QLocale::ShortFormat);
|
||||
|
@ -783,6 +783,9 @@ If you use a few different masks, pick average values instead. It should still b
|
||||
<property name="text">
|
||||
<string notr="true">48 l/m</string>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
@ -853,6 +856,9 @@ If you use a few different masks, pick average values instead. It should still b
|
||||
<property name="text">
|
||||
<string notr="true">20 l/m</string>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user