+ use quantity box in tessellation dialog
This commit is contained in:
parent
18a61c0ef8
commit
37e9c9732f
|
@ -245,7 +245,7 @@ bool Tessellation::accept()
|
|||
|
||||
QString cmd;
|
||||
if (method == 0) { // Standard
|
||||
double devFace = ui->spinSurfaceDeviation->value();
|
||||
double devFace = ui->spinSurfaceDeviation->value().getValue();
|
||||
cmd = QString::fromLatin1(
|
||||
"__doc__=FreeCAD.getDocument(\"%1\")\n"
|
||||
"__mesh__=__doc__.addObject(\"Mesh::Feature\",\"Mesh\")\n"
|
||||
|
@ -259,7 +259,7 @@ bool Tessellation::accept()
|
|||
.arg(label);
|
||||
}
|
||||
else if (method == 1) { // Mefisto
|
||||
double maxEdge = ui->spinMaximumEdgeLength->value();
|
||||
double maxEdge = ui->spinMaximumEdgeLength->value().getValue();
|
||||
if (!ui->spinMaximumEdgeLength->isEnabled())
|
||||
maxEdge = 0;
|
||||
cmd = QString::fromLatin1(
|
||||
|
|
|
@ -70,9 +70,9 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="spinSurfaceDeviation">
|
||||
<property name="decimals">
|
||||
<number>3</number>
|
||||
<widget class="Gui::QuantitySpinBox" name="spinSurfaceDeviation">
|
||||
<property name="unit" stdset="0">
|
||||
<string notr="true">mm</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<double>0.001000000000000</double>
|
||||
|
@ -117,9 +117,9 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="spinMaximumEdgeLength">
|
||||
<property name="decimals">
|
||||
<number>3</number>
|
||||
<widget class="Gui::QuantitySpinBox" name="spinMaximumEdgeLength">
|
||||
<property name="unit" stdset="0">
|
||||
<string notr="true">mm</string>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
|
@ -339,6 +339,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Gui::QuantitySpinBox</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>Gui/QuantitySpinBox.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>treeWidget</tabstop>
|
||||
</tabstops>
|
||||
|
|
Loading…
Reference in New Issue
Block a user