summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.ui
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2019-11-10 13:09:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-10 13:10:03 -0800
commit7a4abd7477dc2a4f8e52f7bb00c19890c6ec2ca2 (patch)
tree6c11b1d41b52307de8c396a4d1e94d7f3b06c410 /desktop-widgets/tab-widgets/maintab.ui
parentdc95b077d96fbbd2dc71213217c24cd1eea5ea51 (diff)
downloadsubsurface-7a4abd7477dc2a4f8e52f7bb00c19890c6ec2ca2.tar.gz
Reorganise the Information tab of the Info panel
1) Reorganise the existing widgets in the Information tab 2) Move divemode widget and visibility widget from Notes tab to Information tab 3) Translate water density to a word indicating water type 4) Reorganise the Notes tab to compensate for the moving the divemode and visibility widgets to the Information tab 5) Remove the problems in showing a QGroupBox in Qt Windows. I do this by removing the CSS specifying border characteristics Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.ui')
-rw-r--r--desktop-widgets/tab-widgets/maintab.ui138
1 files changed, 39 insertions, 99 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.ui b/desktop-widgets/tab-widgets/maintab.ui
index 606f1dd54..8e172f91a 100644
--- a/desktop-widgets/tab-widgets/maintab.ui
+++ b/desktop-widgets/tab-widgets/maintab.ui
@@ -298,100 +298,15 @@
</layout>
</item>
<item>
- <layout class="QGridLayout" name="gridLayout_8" columnstretch="0,0,1">
- <property name="leftMargin">
- <number>5</number>
- </property>
- <property name="rightMargin">
- <number>5</number>
- </property>
- <property name="horizontalSpacing">
+ <layout class="QHBoxLayout" name="gridLayout_9">
+ <property name="Spacing">
<number>5</number>
</property>
- <property name="verticalSpacing">
- <number>0</number>
- </property>
- <item row="0" column="0">
- <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>
- </widget>
- </item>
- <item row="0" column="1">
- <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>
- </widget>
- </item>
- <item row="1" column="0" alignment="Qt::AlignVCenter">
- <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>
- </widget>
- </item>
- <item row="1" column="1" alignment="Qt::AlignVCenter">
- <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>
- </widget>
- </item>
- <item row="1" column="2">
- <spacer>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
<item>
- <layout class="QGridLayout" name="gridLayout_9">
- <property name="horizontalSpacing">
+ <layout class="QVBoxLayout" name="gridLayout_tags">
+ <property name="Spacing">
<number>5</number>
</property>
- <property name="verticalSpacing">
- <number>0</number>
- </property>
- <item row="1" column="1">
- <widget class="QComboBox" name="DiveType"/>
- </item>
<item row="0" column="0">
<widget class="QLabel" name="TagLabel">
<property name="text">
@@ -402,16 +317,6 @@
</property>
</widget>
</item>
- <item row="0" column="1">
- <widget class="QLabel" name="TypeLabel">
- <property name="text">
- <string>Dive mode</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
- </property>
- </widget>
- </item>
<item row="1" column="0">
<widget class="TagWidget" name="tagWidget">
<property name="sizePolicy">
@@ -440,6 +345,41 @@
</layout>
</item>
<item>
+ <layout class="QVBoxLayout" name="gridLayout_rating">
+ <property name="Spacing">
+ <number>5</number>
+ </property>
+ <item row="0" column="1">
+ <widget class="QLabel" name="RatingLabel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Rating</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1" alignment="Qt::AlignVCenter">
+ <widget class="StarWidget" name="rating" native="true">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="focusPolicy">
+ <enum>Qt::StrongFocus</enum>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ <item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<property name="spacing">
<number>0</number>