mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:13:23 +00:00
Typo: modp02 -> modpO2
Fixes two function names, where O2 was written as 02. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4d04f74312
commit
b32251a5a8
4 changed files with 10 additions and 10 deletions
|
@ -296,7 +296,7 @@ void TechnicalDetailsSettings::setDecoMode(deco_mode d)
|
|||
emit decoModeChanged(d);
|
||||
}
|
||||
|
||||
double TechnicalDetailsSettings:: modp02() const
|
||||
double TechnicalDetailsSettings:: modpO2() const
|
||||
{
|
||||
return prefs.modpO2;
|
||||
}
|
||||
|
@ -416,7 +416,7 @@ bool TechnicalDetailsSettings::showPicturesInProfile() const
|
|||
return prefs.show_pictures_in_profile;
|
||||
}
|
||||
|
||||
void TechnicalDetailsSettings::setModp02(double value)
|
||||
void TechnicalDetailsSettings::setModpO2(double value)
|
||||
{
|
||||
if (value == prefs.modpO2)
|
||||
return;
|
||||
|
|
|
@ -112,7 +112,7 @@ private:
|
|||
|
||||
class TechnicalDetailsSettings : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(double modpO2 READ modp02 WRITE setModp02 NOTIFY modpO2Changed)
|
||||
Q_PROPERTY(double modpO2 READ modpO2 WRITE setModpO2 NOTIFY modpO2Changed)
|
||||
Q_PROPERTY(bool ead READ ead WRITE setEad NOTIFY eadChanged)
|
||||
Q_PROPERTY(bool mod READ mod WRITE setMod NOTIFY modChanged)
|
||||
Q_PROPERTY(bool dcceiling READ dcceiling WRITE setDCceiling NOTIFY dcceilingChanged)
|
||||
|
@ -141,7 +141,7 @@ class TechnicalDetailsSettings : public QObject {
|
|||
public:
|
||||
TechnicalDetailsSettings(QObject *parent);
|
||||
|
||||
double modp02() const;
|
||||
double modpO2() const;
|
||||
bool ead() const;
|
||||
bool mod() const;
|
||||
bool dcceiling() const;
|
||||
|
@ -169,7 +169,7 @@ public:
|
|||
|
||||
public slots:
|
||||
void setMod(bool value);
|
||||
void setModp02(double value);
|
||||
void setModpO2(double value);
|
||||
void setEad(bool value);
|
||||
void setDCceiling(bool value);
|
||||
void setRedceiling(bool value);
|
||||
|
|
|
@ -62,7 +62,7 @@ void PreferencesGraph::syncSettings()
|
|||
pp_gas->setPn2Threshold(ui->pn2Threshold->value());
|
||||
|
||||
auto tech = SettingsObjectWrapper::instance()->techDetails;
|
||||
tech->setModp02(ui->maxpo2->value());
|
||||
tech->setModpO2(ui->maxpo2->value());
|
||||
tech->setRedceiling(ui->red_ceiling->isChecked());
|
||||
tech->setBuehlmann(ui->buehlmann->isChecked());
|
||||
tech->setGflow(ui->gflow->value());
|
||||
|
|
|
@ -78,10 +78,10 @@ void TestPreferences::testPreferences()
|
|||
TEST(cloud->verificationStatus(), (short)1);
|
||||
|
||||
auto tecDetails = pref->techDetails;
|
||||
tecDetails->setModp02(0.2);
|
||||
TEST(tecDetails->modp02(), 0.2);
|
||||
tecDetails->setModp02(1.0);
|
||||
TEST(tecDetails->modp02(), 1.0);
|
||||
tecDetails->setModpO2(0.2);
|
||||
TEST(tecDetails->modpO2(), 0.2);
|
||||
tecDetails->setModpO2(1.0);
|
||||
TEST(tecDetails->modpO2(), 1.0);
|
||||
|
||||
tecDetails->setGflow(2);
|
||||
TEST(tecDetails->gflow(), 2);
|
||||
|
|
Loading…
Add table
Reference in a new issue