diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-24 11:59:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-25 08:33:08 -0700 |
commit | 891c0e7ec666c97255476260f8058e5bac3b80f8 (patch) | |
tree | 4a91461fab7d6f77d656bcce1c3d0454edbc0394 | |
parent | 2d17edeb40125458313ca078026f933d49356e7f (diff) | |
download | subsurface-891c0e7ec666c97255476260f8058e5bac3b80f8.tar.gz |
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>
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveInformation.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp index 1881c39e5..eeb6d30cc 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp +++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp @@ -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 } } - - |