summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-20 14:38:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-20 09:46:24 -0700
commita3238020eebedaf110bd0b63a9f16aa2b605efe0 (patch)
tree87984c0dce6d8d6e9c7409ad0fdcb0576da86125 /desktop-widgets
parentb0dfc0d0ffe72d188cac75561fd178fde7d875a1 (diff)
downloadsubsurface-a3238020eebedaf110bd0b63a9f16aa2b605efe0.tar.gz
desktop: rearrange widgets on the dive site tab
Move the more commonly used filter to the left and the less commonly used "purge unused sites" button to the right. Add a spacer so that the filter-textbox doesn't extend over the whole free space. With apologies to sinistroverse users (is there an option to make the layout direction depend on the locale?). Suggested-by: Hartley Horwitz <hhrwtz@gmail.com> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveSite.ui30
1 files changed, 27 insertions, 3 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveSite.ui b/desktop-widgets/tab-widgets/TabDiveSite.ui
index 0d53b3510..316527e04 100644
--- a/desktop-widgets/tab-widgets/TabDiveSite.ui
+++ b/desktop-widgets/tab-widgets/TabDiveSite.ui
@@ -17,14 +17,38 @@
<item>
<layout class="QHBoxLayout" name="layout">
<item>
- <widget class="QToolButton" name="purgeUnused">
+ <widget class="QLabel" name="filterLabel">
<property name="text">
- <string>Purge unused dive sites</string>
+ <string>Filter</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="filterText">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed"/>
</property>
</widget>
</item>
<item>
- <widget class="QLineEdit" name="filterText"/>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QToolButton" name="purgeUnused">
+ <property name="text">
+ <string>Purge unused dive sites</string>
+ </property>
+ </widget>
</item>
</layout>
</item>