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>
This commit is contained in:
Berthold Stoeger 2020-04-20 14:38:09 +02:00 committed by Dirk Hohndel
parent b0dfc0d0ff
commit a3238020ee

View file

@ -16,6 +16,33 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="layout">
<item>
<widget class="QLabel" name="filterLabel">
<property name="text">
<string>Filter</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="filterText">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"/>
</property>
</widget>
</item>
<item>
<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">
@ -23,9 +50,6 @@
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="filterText"/>
</item>
</layout>
</item>
<item>