summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-25 17:41:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-25 17:45:15 -0700
commited57442bf77838a7b3ff8c5c14d053b76499678b (patch)
treef379f9fab47955dc14e3e6a8a5cdfd14af13dea9
parent8f2f9164fc25a11786b7323dc96521a089973656 (diff)
downloadsubsurface-ed57442bf77838a7b3ff8c5c14d053b76499678b.tar.gz
Layout issues: Fix rating/visibility vs suit
The suit field should take up all the remaining space and the stars should be vertically centered with the text. This looks much better Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.ui32
1 files changed, 17 insertions, 15 deletions
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui
index b2bc98b88..43c30d28d 100644
--- a/qt-ui/maintab.ui
+++ b/qt-ui/maintab.ui
@@ -55,8 +55,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>449</width>
- <height>758</height>
+ <width>445</width>
+ <height>760</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -245,7 +245,7 @@
</layout>
</item>
<item>
- <layout class="QGridLayout" name="gridLayout_3">
+ <layout class="QGridLayout" name="gridLayout_3" columnstretch="0,0,1">
<property name="horizontalSpacing">
<number>5</number>
</property>
@@ -285,7 +285,7 @@
</property>
</widget>
</item>
- <item row="1" column="0">
+ <item row="1" column="0" alignment="Qt::AlignVCenter">
<widget class="StarWidget" name="rating" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
@@ -298,7 +298,7 @@
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="1" column="1" alignment="Qt::AlignVCenter">
<widget class="StarWidget" name="visibility" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
@@ -313,6 +313,12 @@
</item>
<item row="1" column="2">
<widget class="QLineEdit" name="suit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="readOnly">
<bool>false</bool>
</property>
@@ -508,8 +514,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>449</width>
- <height>750</height>
+ <width>100</width>
+ <height>30</height>
</rect>
</property>
<layout class="QGridLayout" name="equipmentTabScrollAreaLayout">
@@ -603,8 +609,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>449</width>
- <height>750</height>
+ <width>286</width>
+ <height>300</height>
</rect>
</property>
<layout class="QGridLayout" name="diveInfoScrollAreaLayout">
@@ -944,8 +950,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>449</width>
- <height>750</height>
+ <width>297</width>
+ <height>177</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
@@ -1118,10 +1124,6 @@
</layout>
</item>
</layout>
- <zorder>groupBox_8b</zorder>
- <zorder>groupBox_4b</zorder>
- <zorder>groupBoxb</zorder>
- <zorder>diveStatisticsMessage</zorder>
</widget>
</widget>
</item>