refactor: hole taskpanel tweak layout spacing

This commit is contained in:
Alfredo Monclus
2025-02-16 13:50:48 -03:00
committed by Chris Hennes
parent 04d2bcbf45
commit 0bad3cc37b

View File

@@ -46,7 +46,7 @@
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="text">
<string>Depth Type</string>
@@ -62,7 +62,7 @@
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<item>
<property name="text">
@@ -85,7 +85,7 @@
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::RightToLeft</enum>
<enum>Qt::LayoutDirection::RightToLeft</enum>
</property>
<property name="text">
<string>Head Type</string>
@@ -119,7 +119,7 @@
<string>Check to override the values predefined by the 'Type'</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="text">
<string>Custom head values</string>
@@ -145,7 +145,7 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
<number>10</number>
<number>14</number>
</property>
<property name="topMargin">
<number>0</number>
@@ -155,6 +155,12 @@
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_13">
<property name="spacing">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<widget class="Gui::ElideLabel" name="labelHoleCutDiameter">
<property name="sizePolicy">
@@ -177,7 +183,7 @@
</sizepolicy>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
<enum>Qt::ContextMenuPolicy::NoContextMenu</enum>
</property>
<property name="keyboardTracking">
<bool>false</bool>
@@ -197,6 +203,12 @@
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_12">
<property name="spacing">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<widget class="Gui::ElideLabel" name="labelHoleCutDepth">
<property name="sizePolicy">
@@ -249,6 +261,12 @@ the screw's top below the surface</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">QFrame {background-color: none; border-width: 0px;}</string>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="spacing">
<number>6</number>
@@ -344,7 +362,7 @@ account for the depth of blind holes</string>
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="spacing">
<number>8</number>
<number>14</number>
</property>
<property name="topMargin">
<number>0</number>
@@ -354,6 +372,12 @@ account for the depth of blind holes</string>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<property name="spacing">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<widget class="Gui::ElideLabel" name="labelHoleCutCountersinkAngle">
<property name="sizePolicy">
@@ -366,7 +390,7 @@ account for the depth of blind holes</string>
<string>Countersink angle</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
@@ -393,6 +417,12 @@ account for the depth of blind holes</string>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<property name="spacing">
<number>3</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<widget class="Gui::ElideLabel" name="labelDepth">
<property name="sizePolicy">
@@ -405,7 +435,7 @@ account for the depth of blind holes</string>
<string>Depth</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
@@ -429,6 +459,15 @@ account for the depth of blind holes</string>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<property name="spacing">
<number>3</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="Gui::ElideLabel" name="labelDiameter">
<property name="sizePolicy">
@@ -441,7 +480,7 @@ account for the depth of blind holes</string>
<string>Diameter</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
@@ -509,7 +548,7 @@ account for the depth of blind holes</string>
</sizepolicy>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="text">
<string>Tapered</string>
@@ -763,7 +802,7 @@ Only available for holes without thread</string>
<string>Direction</string>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
<set>Qt::AlignmentFlag::AlignHCenter|Qt::AlignmentFlag::AlignTop</set>
</property>
</widget>
</item>
@@ -784,7 +823,7 @@ Only available for holes without thread</string>
<string/>
</property>
<property name="text">
<string>Right hand</string>
<string>&amp;Right hand</string>
</property>
<attribute name="buttonGroup">
<string notr="true">directionButtonGroup</string>
@@ -800,7 +839,7 @@ Only available for holes without thread</string>
</sizepolicy>
</property>
<property name="text">
<string>Left hand</string>
<string>&amp;Left hand</string>
</property>
<attribute name="buttonGroup">
<string notr="true">directionButtonGroup</string>
@@ -1000,7 +1039,7 @@ Note that the calculation can take some time</string>
<string>Customize thread clearance</string>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
<enum>Qt::LayoutDirection::LeftToRight</enum>
</property>
<property name="text">
<string>Custom Clearance</string>