mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
maintab capitalisation consistency
Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85a98636c1
commit
5c5168cf17
2 changed files with 18 additions and 18 deletions
|
@ -384,7 +384,7 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
ui.dateEdit->setDate(localTime.date());
|
ui.dateEdit->setDate(localTime.date());
|
||||||
ui.timeEdit->setTime(localTime.time());
|
ui.timeEdit->setTime(localTime.time());
|
||||||
if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {
|
if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {
|
||||||
setTabText(0, tr("Trip Notes"));
|
setTabText(0, tr("Trip notes"));
|
||||||
// only use trip relevant fields
|
// only use trip relevant fields
|
||||||
ui.coordinates->setVisible(false);
|
ui.coordinates->setVisible(false);
|
||||||
ui.CoordinatedLabel->setVisible(false);
|
ui.CoordinatedLabel->setVisible(false);
|
||||||
|
@ -406,14 +406,14 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
ui.watertemp->setVisible(false);
|
ui.watertemp->setVisible(false);
|
||||||
// rename the remaining fields and fill data from selected trip
|
// rename the remaining fields and fill data from selected trip
|
||||||
dive_trip_t *currentTrip = *MainWindow::instance()->dive_list()->selectedTrips().begin();
|
dive_trip_t *currentTrip = *MainWindow::instance()->dive_list()->selectedTrips().begin();
|
||||||
ui.LocationLabel->setText(tr("Trip Location"));
|
ui.LocationLabel->setText(tr("Trip location"));
|
||||||
ui.location->setText(currentTrip->location);
|
ui.location->setText(currentTrip->location);
|
||||||
ui.NotesLabel->setText(tr("Trip Notes"));
|
ui.NotesLabel->setText(tr("Trip notes"));
|
||||||
ui.notes->setText(currentTrip->notes);
|
ui.notes->setText(currentTrip->notes);
|
||||||
clearEquipment();
|
clearEquipment();
|
||||||
ui.equipmentTab->setEnabled(false);
|
ui.equipmentTab->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
setTabText(0, tr("Dive Notes"));
|
setTabText(0, tr("Dive notes"));
|
||||||
// make all the fields visible writeable
|
// make all the fields visible writeable
|
||||||
ui.coordinates->setVisible(true);
|
ui.coordinates->setVisible(true);
|
||||||
ui.CoordinatedLabel->setVisible(true);
|
ui.CoordinatedLabel->setVisible(true);
|
||||||
|
@ -498,8 +498,8 @@ void MainTab::updateDiveInfo(bool clear)
|
||||||
// the overall average depth is really confusing when listed between the
|
// the overall average depth is really confusing when listed between the
|
||||||
// deepest and shallowest dive - let's just not set it
|
// deepest and shallowest dive - let's just not set it
|
||||||
// ui.depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
|
// ui.depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
|
||||||
ui.depthLimits->overrideMaxToolTipText(tr("Deepest Dive"));
|
ui.depthLimits->overrideMaxToolTipText(tr("Deepest dive"));
|
||||||
ui.depthLimits->overrideMinToolTipText(tr("Shallowest Dive"));
|
ui.depthLimits->overrideMinToolTipText(tr("Shallowest dive"));
|
||||||
ui.sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min")));
|
ui.sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min")));
|
||||||
ui.sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min")));
|
ui.sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min")));
|
||||||
ui.sacLimits->setAverage(get_volume_string(stats_selection.avg_sac, true).append(tr("/min")));
|
ui.sacLimits->setAverage(get_volume_string(stats_selection.avg_sac, true).append(tr("/min")));
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="notesTab">
|
<widget class="QWidget" name="notesTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Dive Notes</string>
|
<string>Dive notes</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
|
@ -388,7 +388,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="infoTab">
|
<widget class="QWidget" name="infoTab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Dive Info</string>
|
<string>Dive info</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
@ -471,7 +471,7 @@
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QGroupBox" name="groupBox_3">
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Gases Used</string>
|
<string>Gases used</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
|
@ -490,7 +490,7 @@
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QGroupBox" name="groupBox_4">
|
<widget class="QGroupBox" name="groupBox_4">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Gas Consumed</string>
|
<string>Gas consumed</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||||
<item>
|
<item>
|
||||||
|
@ -528,7 +528,7 @@
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QGroupBox" name="groupBox_6">
|
<widget class="QGroupBox" name="groupBox_6">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Max. Depth</string>
|
<string>Max. depth</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||||
<item>
|
<item>
|
||||||
|
@ -547,7 +547,7 @@
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QGroupBox" name="groupBox_7">
|
<widget class="QGroupBox" name="groupBox_7">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Ave. Depth</string>
|
<string>Ave. depth</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||||
<item>
|
<item>
|
||||||
|
@ -585,7 +585,7 @@
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QGroupBox" name="groupBox_10">
|
<widget class="QGroupBox" name="groupBox_10">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Air Pressure</string>
|
<string>Air pressure</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
||||||
<item>
|
<item>
|
||||||
|
@ -604,7 +604,7 @@
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QGroupBox" name="groupBox_9">
|
<widget class="QGroupBox" name="groupBox_9">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Air Temperature</string>
|
<string>Air temperature</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
||||||
<item>
|
<item>
|
||||||
|
@ -623,7 +623,7 @@
|
||||||
<item row="3" column="2">
|
<item row="3" column="2">
|
||||||
<widget class="QGroupBox" name="groupBox_8">
|
<widget class="QGroupBox" name="groupBox_8">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Water Temperature</string>
|
<string>Water temperature</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||||
<item>
|
<item>
|
||||||
|
@ -642,7 +642,7 @@
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QGroupBox" name="groupBox_11">
|
<widget class="QGroupBox" name="groupBox_11">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Dive Time</string>
|
<string>Dive time</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
||||||
<item>
|
<item>
|
||||||
|
@ -813,7 +813,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_11b">
|
<widget class="QGroupBox" name="groupBox_11b">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Total Time</string>
|
<string>Total time</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_11b">
|
<layout class="QHBoxLayout" name="horizontalLayout_11b">
|
||||||
<item>
|
<item>
|
||||||
|
@ -871,7 +871,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_13">
|
<widget class="QGroupBox" name="groupBox_13">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Gas Consumption</string>
|
<string>Gas consumption</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_15b">
|
<layout class="QHBoxLayout" name="horizontalLayout_15b">
|
||||||
<item>
|
<item>
|
||||||
|
|
Loading…
Add table
Reference in a new issue