mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Display units in dive list table based on prefs option
Add a preferences option which enables or disables display of units in the main dive liste table. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
2cb5d45231
commit
78cda85444
8 changed files with 94 additions and 16 deletions
|
@ -43,6 +43,7 @@ void PreferencesUnits::refreshSettings()
|
|||
ui->duration_mixed->setChecked(prefs.units.duration_units == units::MIXED);
|
||||
ui->duration_no_hours->setChecked(prefs.units.duration_units == units::MINUTES_ONLY);
|
||||
ui->duration_show_hours->setChecked(prefs.units.duration_units == units::ALWAYS_HOURS);
|
||||
ui->show_units_table->setChecked(prefs.units.show_units_table);
|
||||
}
|
||||
|
||||
void PreferencesUnits::syncSettings()
|
||||
|
@ -60,4 +61,5 @@ void PreferencesUnits::syncSettings()
|
|||
units->setVerticalSpeedTime(ui->vertical_speed_minutes->isChecked() ? units::MINUTES : units::SECONDS);
|
||||
units->setCoordinatesTraditional(ui->gpsTraditional->isChecked());
|
||||
units->setDurationUnits(ui->duration_mixed->isChecked() ? units::MIXED : (ui->duration_no_hours->isChecked() ? units::MINUTES_ONLY : units::ALWAYS_HOURS));
|
||||
units->setShowUnitsTable(ui->show_units_table->isChecked());
|
||||
}
|
||||
|
|
|
@ -269,7 +269,23 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_11">
|
||||
<widget class="QGroupBox" name="groupBox_divelist">
|
||||
<property name="title">
|
||||
<string>Dive list table</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="show_units_table">
|
||||
<property name="text">
|
||||
<string>Show units in dive list table</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_gps">
|
||||
<property name="title">
|
||||
<string>GPS coordinates</string>
|
||||
</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue