aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-29 08:56:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-29 09:00:41 -0700
commit4de78729d7c3ce847e858da57965962ad99f76f5 (patch)
tree830fcea16e239f07d4f81ffb60e8221aa7ca9273
parentde8dbf2dad6cf94669e4fe76ae0a3be2f6bfe51e (diff)
downloadsubsurface-4de78729d7c3ce847e858da57965962ad99f76f5.tar.gz
Maintab: make design more fluid
I'm not sure I love the result just yet - the different fields don't quite stretch in a natural way (i.e., they don't stretch proportionally), but at least eventually they all stretch. Fixes #569 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.ui49
1 files changed, 40 insertions, 9 deletions
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui
index ff7a45862..d3904c6d8 100644
--- a/qt-ui/maintab.ui
+++ b/qt-ui/maintab.ui
@@ -37,8 +37,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>662</width>
- <height>642</height>
+ <width>668</width>
+ <height>658</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
@@ -238,6 +238,12 @@
<layout class="QHBoxLayout" name="ratingVisibilityLabels">
<item>
<widget class="QLabel" name="RatingLabel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
<string>Rating</string>
</property>
@@ -245,6 +251,12 @@
</item>
<item>
<widget class="QLabel" name="visibilityLabel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
<string>Visibility</string>
</property>
@@ -256,6 +268,12 @@
<layout class="QHBoxLayout" name="ratingVisibilityWidgets">
<item>
<widget class="StarWidget" name="rating" native="true">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
@@ -263,6 +281,12 @@
</item>
<item>
<widget class="StarWidget" name="visibility" native="true">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
@@ -278,7 +302,14 @@
</widget>
</item>
<item row="2" column="1">
- <widget class="QTimeEdit" name="timeEdit"/>
+ <widget class="QTimeEdit" name="timeEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
</item>
</layout>
</widget>
@@ -310,8 +341,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>662</width>
- <height>642</height>
+ <width>100</width>
+ <height>30</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_5">
@@ -390,8 +421,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>662</width>
- <height>642</height>
+ <width>387</width>
+ <height>285</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_6">
@@ -700,8 +731,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>662</width>
- <height>642</height>
+ <width>341</width>
+ <height>167</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_7">