diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.ui | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index ddb9450de..3fbb4327c 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -470,6 +470,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3() deviceDetails->dynamicAscendRate = ui.dynamicAscendRate->isChecked(); deviceDetails->graphicalSpeedIndicator = ui.graphicalSpeedIndicator->isChecked(); deviceDetails->alwaysShowppO2 = ui.alwaysShowppO2->isChecked(); + deviceDetails->tempSensorOffset = ui.tempSensorOffsetDoubleSpinBox->value() * 10; //set gas values gas gas1; @@ -845,6 +846,7 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3() ui.dynamicAscendRate->setChecked(deviceDetails->dynamicAscendRate); ui.graphicalSpeedIndicator->setChecked(deviceDetails->graphicalSpeedIndicator); ui.alwaysShowppO2->setChecked(deviceDetails->alwaysShowppO2); + ui.tempSensorOffsetDoubleSpinBox->setValue((double)deviceDetails->tempSensorOffset / 10.0); //load gas 1 values ui.ostc3GasTable->setItem(0, 1, new QTableWidgetItem(QString::number(deviceDetails->gas1.oxygen))); diff --git a/desktop-widgets/configuredivecomputerdialog.ui b/desktop-widgets/configuredivecomputerdialog.ui index 0986d71ca..ac177a277 100644 --- a/desktop-widgets/configuredivecomputerdialog.ui +++ b/desktop-widgets/configuredivecomputerdialog.ui @@ -1043,6 +1043,32 @@ </property> </widget> </item> + <item row="14" column="3"> + <widget class="QLabel" name="label_71"> + <property name="text"> + <string>Temperature sensor offset</string> + </property> + </widget> + </item> + <item row="14" column="4"> + <widget class="QDoubleSpinBox" name="tempSensorOffsetDoubleSpinBox"> + <property name="suffix"> + <string>°C</string> + </property> + <property name="decimals"> + <number>1</number> + </property> + <property name="minimum"> + <double>-2.000000000000000</double> + </property> + <property name="maximum"> + <double>2.000000000000000</double> + </property> + <property name="singleStep"> + <double>0.100000000000000</double> + </property> + </widget> + </item> </layout> </widget> <widget class="QWidget" name="gasSettings"> |