0000521: Part Design: Pad from sketch on a face - reversed option greyed out in Taskview

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5357 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-12-29 12:31:49 +00:00
parent 0b0f55e8f8
commit 5eaf2226ab

View File

@ -75,19 +75,10 @@ TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView,QWidget *parent)
ui->doubleSpinBox->setValue(l);
ui->doubleSpinBox->selectAll();
ui->checkBoxMirrored->setChecked(mirrored);
// check if the sketch has support
Sketcher::SketchObject *pcSketch;
if (pcPad->Sketch.getValue()) {
pcSketch = static_cast<Sketcher::SketchObject*>(pcPad->Sketch.getValue());
if (pcSketch->Support.getValue())
// in case of sketch with support, reverse makes no sense (goes into the part)
ui->checkBoxReversed->setEnabled(0);
else
ui->checkBoxReversed->setChecked(reversed);
}
// According to bug #0000521 the reversed option
// shouldn't be de-activated if the pad has a support face
ui->checkBoxReversed->setChecked(reversed);
// Make sure that the spin box has the focus to get key events
// Calling setFocus() directly doesn't work because the spin box is not
// yet visible.