Commit 0bb9f821 authored by Dirk Wilden's avatar Dirk Wilden

intuitive default values

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8663 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 47fb9372
......@@ -332,7 +332,9 @@ void DecimaterPlugin::slotUpdateNumVertices()
tool_->currentNumVertices->setText (QString::number(max));
tool_->verticesCount->setMaximum(max);
tool_->verticesCountSlider->setMaximum(max);
tool_->verticesCount->setValue(max);
if ( tool_->verticesCount->value() < 2 )
tool_->verticesCount->setValue( max / 2 );
}
}
......
......@@ -169,6 +169,9 @@ p, li { white-space: pre-wrap; }
</item>
<item row="3" column="1">
<widget class="QSlider" name="verticesCountSlider">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>100000</number>
</property>
......@@ -185,6 +188,9 @@ p, li { white-space: pre-wrap; }
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>99999</number>
</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