summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-05-25 14:49:34 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-25 17:43:14 -0700
commit946615b8d7df8ee0f1e3f919846fd3e4c006f99d (patch)
tree798905356fa1f1ace715e34d0a6a7d841046a713 /qt-ui
parentd5013a788380e65adf30529787b15ef7fe5bf105 (diff)
downloadsubsurface-946615b8d7df8ee0f1e3f919846fd3e4c006f99d.tar.gz
Layout issues: Major rework on the MainTab
This seems almost perfect now. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationInformation.ui13
-rw-r--r--qt-ui/maintab.ui169
2 files changed, 114 insertions, 68 deletions
diff --git a/qt-ui/locationInformation.ui b/qt-ui/locationInformation.ui
index 38eb36145..fbb11b3c6 100644
--- a/qt-ui/locationInformation.ui
+++ b/qt-ui/locationInformation.ui
@@ -17,14 +17,23 @@
<string>Dive Site</string>
</property>
<layout class="QGridLayout" name="gridLayout">
- <property name="bottomMargin">
+ <property name="leftMargin">
<number>12</number>
</property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
<property name="horizontalSpacing">
<number>2</number>
</property>
<property name="verticalSpacing">
- <number>-1</number>
+ <number>5</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_5">
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui
index 04a79519d..b2bc98b88 100644
--- a/qt-ui/maintab.ui
+++ b/qt-ui/maintab.ui
@@ -513,6 +513,18 @@
</rect>
</property>
<layout class="QGridLayout" name="equipmentTabScrollAreaLayout">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
<property name="spacing">
<number>2</number>
</property>
@@ -522,6 +534,18 @@
<property name="spacing">
<number>0</number>
</property>
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
@@ -584,6 +608,18 @@
</rect>
</property>
<layout class="QGridLayout" name="diveInfoScrollAreaLayout">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
<property name="spacing">
<number>2</number>
</property>
@@ -892,9 +928,6 @@
<property name="bottomMargin">
<number>5</number>
</property>
- <item row="0" column="1">
- <widget class="KMessageWidget" name="diveStatisticsMessage" native="true"/>
- </item>
<item row="1" column="1">
<widget class="QScrollArea" name="scrollArea_4">
<property name="frameShape">
@@ -915,48 +948,33 @@
<height>750</height>
</rect>
</property>
- <layout class="QGridLayout" name="statsScrollAreaLayout">
- <property name="spacing">
- <number>2</number>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <property name="leftMargin">
+ <number>0</number>
</property>
- <item row="0" column="0">
- <widget class="QGroupBox" name="groupBoxb">
- <property name="title">
- <string>Depth</string>
- </property>
- <layout class="QHBoxLayout" name="statsDepthLayout">
- <item>
- <widget class="MinMaxAvgWidget" name="depthLimits" native="true"/>
- </item>
- </layout>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QGroupBox" name="groupBox_8b">
- <property name="title">
- <string>Temperature</string>
- </property>
- <layout class="QHBoxLayout" name="statsTempLayout">
- <item>
- <widget class="MinMaxAvgWidget" name="tempLimits" native="true"/>
- </item>
- </layout>
- </widget>
- </item>
- <item row="0" column="2">
- <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 row="1" column="0">
- <layout class="QVBoxLayout" name="statsOuterDurationLayout">
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_5">
+ <item>
+ <widget class="QGroupBox" name="groupBoxb">
+ <property name="title">
+ <string>Depth</string>
+ </property>
+ <layout class="QHBoxLayout" name="statsDepthLayout">
+ <item>
+ <widget class="MinMaxAvgWidget" name="depthLimits" native="true"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
<item>
<widget class="QGroupBox" name="groupBox_14">
<property name="title">
@@ -970,25 +988,34 @@
</widget>
</item>
<item>
- <spacer name="innerSpacer0">
+ <spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
<property name="sizeHint" stdset="0">
<size>
- <width>0</width>
- <height>0</height>
+ <width>20</width>
+ <height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
- <item row="1" column="1">
- <layout class="QVBoxLayout" name="statsOuterTotalTimeDivesLayout">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_6">
+ <item>
+ <widget class="QGroupBox" name="groupBox_8b">
+ <property name="title">
+ <string>Temperature</string>
+ </property>
+ <layout class="QHBoxLayout" name="statsTempLayout">
+ <item>
+ <widget class="MinMaxAvgWidget" name="tempLimits" native="true"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
<item>
<widget class="QGroupBox" name="groupBox_11b">
<property name="title">
@@ -1028,25 +1055,34 @@
</widget>
</item>
<item>
- <spacer name="innerSpacer1">
+ <spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
<property name="sizeHint" stdset="0">
<size>
- <width>0</width>
- <height>0</height>
+ <width>20</width>
+ <height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
- <item row="1" column="2">
- <layout class="QVBoxLayout" name="statsOuterGasConsumptionLayout">
+ <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>
<widget class="QGroupBox" name="groupBox_13">
<property name="title">
@@ -1067,17 +1103,14 @@
</widget>
</item>
<item>
- <spacer name="innerSpacer2">
+ <spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
<property name="sizeHint" stdset="0">
<size>
- <width>0</width>
- <height>0</height>
+ <width>20</width>
+ <height>40</height>
</size>
</property>
</spacer>
@@ -1088,9 +1121,13 @@
<zorder>groupBox_8b</zorder>
<zorder>groupBox_4b</zorder>
<zorder>groupBoxb</zorder>
+ <zorder>diveStatisticsMessage</zorder>
</widget>
</widget>
</item>
+ <item row="0" column="1">
+ <widget class="KMessageWidget" name="diveStatisticsMessage" native="true"/>
+ </item>
</layout>
</widget>
<widget class="QWidget" name="tab">