summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-04-24 20:37:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-26 21:27:37 -0700
commit0f80d07e4bf9fa19aaff8f5cf853873eb146370f (patch)
treede13de6bc4282483f35cc850353342059f3acb40 /desktop-widgets/tab-widgets
parent92e6cdf3e89f711672a86068eeaa486fe84ef952 (diff)
downloadsubsurface-0f80d07e4bf9fa19aaff8f5cf853873eb146370f.tar.gz
Rework statistics tab to use a grid layout
This makes everything line up better Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'desktop-widgets/tab-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveStatistics.ui100
1 files changed, 28 insertions, 72 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveStatistics.ui b/desktop-widgets/tab-widgets/TabDiveStatistics.ui
index 251983611..05a26cb3f 100644
--- a/desktop-widgets/tab-widgets/TabDiveStatistics.ui
+++ b/desktop-widgets/tab-widgets/TabDiveStatistics.ui
@@ -13,8 +13,8 @@
<property name="windowTitle">
<string>Statistics</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
<widget class="QScrollArea" name="scrollArea_4">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
@@ -48,8 +48,11 @@
<number>0</number>
</property>
<item>
- <layout class="QVBoxLayout" name="verticalLayout_5">
- <item>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <property name="horizontalSpacing">
+ <number>6</number>
+ </property>
+ <item row="1" column="0">
<widget class="QGroupBox" name="groupBoxb">
<property name="title">
<string>Depth</string>
@@ -61,36 +64,19 @@
</layout>
</widget>
</item>
- <item>
- <widget class="QGroupBox" name="groupBox_14">
+ <item row="0" column="2">
+ <widget class="QGroupBox" name="groupBox_4b">
<property name="title">
- <string>Duration</string>
+ <string>SAC</string>
</property>
- <layout class="QHBoxLayout" name="statsDurationLayout">
+ <layout class="QHBoxLayout" name="statsSacLayout">
<item>
- <widget class="MinMaxAvgWidget" name="timeLimits" native="true"/>
+ <widget class="MinMaxAvgWidget" name="sacLimits" native="true"/>
</item>
</layout>
</widget>
</item>
- <item>
- <spacer name="verticalSpacer_2">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout_6">
- <item>
+ <item row="0" column="1">
<widget class="QGroupBox" name="groupBox_8b">
<property name="title">
<string>Temperature</string>
@@ -102,7 +88,7 @@
</layout>
</widget>
</item>
- <item>
+ <item row="1" column="1">
<widget class="QGroupBox" name="groupBox_11b">
<property name="title">
<string>Total time</string>
@@ -121,7 +107,19 @@
</layout>
</widget>
</item>
- <item>
+ <item row="0" column="0">
+ <widget class="QGroupBox" name="groupBox_14">
+ <property name="title">
+ <string>Duration</string>
+ </property>
+ <layout class="QHBoxLayout" name="statsDurationLayout">
+ <item>
+ <widget class="MinMaxAvgWidget" name="timeLimits" native="true"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="2" column="1">
<widget class="QGroupBox" name="groupBox_7b">
<property name="title">
<string>Dives</string>
@@ -140,36 +138,7 @@
</layout>
</widget>
</item>
- <item>
- <spacer name="verticalSpacer_3">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QVBoxLayout" name="verticalLayout_7">
- <item>
- <widget class="QGroupBox" name="groupBox_4b">
- <property name="title">
- <string>SAC</string>
- </property>
- <layout class="QHBoxLayout" name="statsSacLayout">
- <item>
- <widget class="MinMaxAvgWidget" name="sacLimits" native="true"/>
- </item>
- </layout>
- </widget>
- </item>
- <item>
+ <item row="1" column="2" rowspan="2">
<widget class="QGroupBox" name="groupBox_13">
<property name="title">
<string>Gas consumption</string>
@@ -188,19 +157,6 @@
</layout>
</widget>
</item>
- <item>
- <spacer name="verticalSpacer_4">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
</layout>
</item>
</layout>