summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-04 13:12:50 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-04 12:16:49 -0800
commit05b53d6204a638147727441a904f0661127142f2 (patch)
treed193df6d3175a0578d75a8a1cbbd9963eb14fe41
parent813ccb24f9863049886946d70495934575ec735e (diff)
downloadsubsurface-05b53d6204a638147727441a904f0661127142f2.tar.gz
Add depth and duration fields to maintab
And hide them for now. This doesn't change anything visible, it's just putting in place the pieces for later use. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/maintab.cpp4
-rw-r--r--desktop-widgets/maintab.ui20
2 files changed, 24 insertions, 0 deletions
diff --git a/desktop-widgets/maintab.cpp b/desktop-widgets/maintab.cpp
index 4766bf050..8b0b48363 100644
--- a/desktop-widgets/maintab.cpp
+++ b/desktop-widgets/maintab.cpp
@@ -120,6 +120,10 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.diveEquipmentMessage->hide();
ui.diveInfoMessage->hide();
ui.diveStatisticsMessage->hide();
+ ui.depth->hide();
+ ui.depthLabel->hide();
+ ui.duration->hide();
+ ui.durationLabel->hide();
setMinimumHeight(0);
setMinimumWidth(0);
diff --git a/desktop-widgets/maintab.ui b/desktop-widgets/maintab.ui
index bfd67bf40..4a6ed9807 100644
--- a/desktop-widgets/maintab.ui
+++ b/desktop-widgets/maintab.ui
@@ -86,6 +86,13 @@
<property name="verticalSpacing">
<number>0</number>
</property>
+ <item row="2" column="3">
+ <widget class="QLabel" name="durationLabel">
+ <property name="text">
+ <string>Duration</string>
+ </property>
+ </widget>
+ </item>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
@@ -163,6 +170,19 @@
</property>
</widget>
</item>
+ <item row="2" column="2">
+ <widget class="QLabel" name="depthLabel">
+ <property name="text">
+ <string>Depth</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="2">
+ <widget class="QLineEdit" name="depth"/>
+ </item>
+ <item row="3" column="3">
+ <widget class="QLineEdit" name="duration"/>
+ </item>
</layout>
</item>
<item>