[PD] Hole initialization bugfix

- by default there is no hole head cut and therefore its parameter must be initialized as read-only (will be enably when user sets a head cut)

- also fix a typo

- also fix a UI file issue (automatically done by Qt Designer)
This commit is contained in:
Uwe
2022-06-25 16:36:50 +02:00
parent 175d2cf2dd
commit 1b2f0063a1
2 changed files with 6 additions and 2 deletions

View File

@@ -665,13 +665,17 @@ Hole::Hole()
HoleCutType.setEnums(HoleCutType_None_Enums);
ADD_PROPERTY_TYPE(HoleCutCustomValues, (false), "Hole", App::Prop_None, "Custom cut values");
HoleCutCustomValues.setReadOnly(true);
ADD_PROPERTY_TYPE(HoleCutDiameter, (0.0), "Hole", App::Prop_None, "Head cut diameter");
HoleCutDiameter.setReadOnly(true);
ADD_PROPERTY_TYPE(HoleCutDepth, (0.0), "Hole", App::Prop_None, "Head cut deth");
ADD_PROPERTY_TYPE(HoleCutDepth, (0.0), "Hole", App::Prop_None, "Head cut depth");
HoleCutDepth.setReadOnly(true);
ADD_PROPERTY_TYPE(HoleCutCountersinkAngle, (90.0), "Hole", App::Prop_None, "Head cut countersink angle");
HoleCutCountersinkAngle.setConstraints(&floatAngle);
HoleCutCountersinkAngle.setReadOnly(true);
ADD_PROPERTY_TYPE(DepthType, (0L), "Hole", App::Prop_None, "Type");
DepthType.setEnums(DepthTypeEnums);

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>355</width>
<width>438</width>
<height>561</height>
</rect>
</property>