Correct behavior of spin boxes in "Chamfer" dialog box.

This commit is contained in:
vsr 2008-10-22 09:01:06 +00:00
parent 6bb396c7b8
commit a1c7974429

View File

@ -220,9 +220,10 @@ OperationGUI_ChamferDlg::OperationGUI_ChamferDlg(GeometryGUI* theGeometryGUI, QW
QMap< int, DlgRef_SpinBox* >::iterator anIter;
for ( anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter )
{
anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, 3 );
if ( anIter.key() == SpinBox44 || anIter.key() == SpinBox34 || anIter.key() == SpinBox24 )
anIter.data()->RangeStepAndValidator( 0.001, 89.999, 5, 0 );
else
anIter.data()->RangeStepAndValidator( 0.001, COORD_MAX, SpecificStep, DBL_DIGITS_DISPLAY );
}
setHelpFileName("chamfer_operation_page.html");