mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: whitespace fixes in TabDiveInformation
Use C-style function definitions (squirly brackets on new lines) and remove empty lines at end of file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2d17edeb40
commit
891c0e7ec6
1 changed files with 8 additions and 5 deletions
|
@ -256,7 +256,8 @@ void TabDiveInformation::updateData()
|
|||
}
|
||||
|
||||
// From the index of the water type combo box, set the dive->salinity to an appropriate value
|
||||
void TabDiveInformation::on_waterTypeCombo_activated(int index) {
|
||||
void TabDiveInformation::on_waterTypeCombo_activated(int index)
|
||||
{
|
||||
Q_UNUSED(index)
|
||||
int combobox_salinity = 0;
|
||||
int dc_salinity = current_dc->salinity;
|
||||
|
@ -409,12 +410,16 @@ void TabDiveInformation::on_watertemp_editingFinished()
|
|||
divesEdited(Command::editWaterTemp(parseTemperatureToMkelvin(ui->watertemp->text()), false));
|
||||
}
|
||||
|
||||
void TabDiveInformation::on_atmPressType_currentIndexChanged(int index) {
|
||||
void TabDiveInformation::on_atmPressType_currentIndexChanged(int index)
|
||||
{
|
||||
Q_UNUSED(index)
|
||||
updateTextBox(COMBO_CHANGED);
|
||||
}
|
||||
|
||||
void TabDiveInformation::on_atmPressVal_editingFinished() { updateTextBox(TEXT_EDITED); }
|
||||
void TabDiveInformation::on_atmPressVal_editingFinished()
|
||||
{
|
||||
updateTextBox(TEXT_EDITED);
|
||||
}
|
||||
|
||||
void TabDiveInformation::updateTextBox(int event) // Either the text box has been edited or the pressure type has changed.
|
||||
{ // Either way this gets a numeric value and puts it on the text box atmPressVal,
|
||||
|
@ -463,5 +468,3 @@ void TabDiveInformation::updateTextBox(int event) // Either the text box has bee
|
|||
divesEdited(Command::editAtmPress(atmpress.mbar, false)); // and save the pressure for undo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue