Skip to content

Commit

Permalink
[PD] fix alignment in pocket dialog
Browse files Browse the repository at this point in the history
just a minor UI issue: when you decrease the width of the pocket dialog (e.g. because you have a small screen), the alignment of the widgets is lost. This PR fixes this by grouping the widgets in a grid.
  • Loading branch information
donovaly authored and wwmayer committed Jan 31, 2021
1 parent 4ea0784 commit b50838c
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/Mod/PartDesign/Gui/TaskPocketParameters.ui
Expand Up @@ -6,24 +6,24 @@
<rect>
<x>0</x>
<y>0</y>
<width>241</width>
<height>233</height>
<width>193</width>
<height>272</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="textLabel1">
<property name="text">
<string>Type</string>
</property>
</widget>
</item>
<item>
<item row="0" column="1">
<widget class="QComboBox" name="changeMode">
<item>
<property name="text">
Expand All @@ -32,18 +32,14 @@
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<item row="1" column="0">
<widget class="QLabel" name="labelLength">
<property name="text">
<string>Length</string>
</property>
</widget>
</item>
<item>
<item row="1" column="1">
<widget class="Gui::PrefQuantitySpinBox" name="lengthEdit">
<property name="keyboardTracking">
<bool>false</bool>
Expand All @@ -53,18 +49,14 @@
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<item row="2" column="0">
<widget class="QLabel" name="labelOffset">
<property name="text">
<string>Offset</string>
</property>
</widget>
</item>
<item>
<item row="2" column="1">
<widget class="Gui::PrefQuantitySpinBox" name="offsetEdit">
<property name="keyboardTracking">
<bool>false</bool>
Expand Down Expand Up @@ -153,6 +145,17 @@
<header>Gui/PrefWidgets.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>changeMode</tabstop>
<tabstop>lengthEdit</tabstop>
<tabstop>offsetEdit</tabstop>
<tabstop>checkBoxMidplane</tabstop>
<tabstop>checkBoxReversed</tabstop>
<tabstop>lengthEdit2</tabstop>
<tabstop>buttonFace</tabstop>
<tabstop>lineFaceName</tabstop>
<tabstop>checkBoxUpdateView</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

0 comments on commit b50838c

Please sign in to comment.