Commit ecb790a9 authored by Jan Möbius's avatar Jan Möbius

Add more dicmal points to the spin boxes. Stop annoying switching of the radio buttons on updates.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13940 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5adff06f
......@@ -626,12 +626,18 @@ void DecimaterPlugin::slotUpdateNumVertices()
if (div <= 0)
tool_->currentNumVertices->setText ("<not available>");
else {
tool_->verticesCount->blockSignals(true);
tool_->verticesCountSlider->blockSignals(true);
tool_->currentNumVertices->setText (QString::number(max));
tool_->verticesCount->setMaximum(max);
tool_->verticesCountSlider->setMaximum(max);
if ( tool_->verticesCount->value() < 2 )
tool_->verticesCount->setValue( max / 2 );
tool_->verticesCount->blockSignals(false);
tool_->verticesCountSlider->blockSignals(false);
}
}
......@@ -655,6 +661,9 @@ void DecimaterPlugin::slotUpdateNumTriangles() {
meshN++;
}
tool_->trianglesCount->blockSignals(true);
tool_->trianglesCountSlider->blockSignals(true);
tool_->trianglesCount->setMinimum(1);
tool_->trianglesCount->setMaximum(max);
tool_->trianglesCountSlider->setMinimum(1);
......@@ -662,6 +671,9 @@ void DecimaterPlugin::slotUpdateNumTriangles() {
if (tool_->trianglesCount->value() < 2)
tool_->trianglesCount->setValue(max/2);
tool_->trianglesCount->blockSignals(false);
tool_->trianglesCountSlider->blockSignals(false);
}
//-----------------------------------------------------------------------------
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>364</width>
<height>581</height>
<width>378</width>
<height>580</height>
</rect>
</property>
<property name="windowTitle">
......@@ -71,7 +71,7 @@
<string>The Hausdorff distance between the original and the decimated mesh will be lower than the given tolerance.</string>
</property>
<property name="decimals">
<number>3</number>
<number>5</number>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
......@@ -189,7 +189,7 @@ p, li { white-space: pre-wrap; }
<string>The roundness ( radius of the circumference divided by the length of the shortest edge) after the collapse has to be lower than the given value.</string>
</property>
<property name="decimals">
<number>2</number>
<number>5</number>
</property>
<property name="maximum">
<double>1.000000000000000</double>
......@@ -217,6 +217,9 @@ p, li { white-space: pre-wrap; }
<property name="toolTip">
<string>The aspect ration of a triangle( the length of the longest edge divided by its corresponding height) after the collapse has to be greater than the given value.</string>
</property>
<property name="decimals">
<number>4</number>
</property>
<property name="minimum">
<double>1.200000000000000</double>
</property>
......@@ -262,6 +265,9 @@ p, li { white-space: pre-wrap; }
<property name="toolTip">
<string>A collapse is only performed, if the length after the collapse is lower than the given value.</string>
</property>
<property name="decimals">
<number>5</number>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment