QList<ModuleBase_ModelWidget*>::const_iterator aWIt;
QList<ModuleBase_ViewerPrs>::const_iterator aPIt;
bool isSet = false;
+ // 1. apply the selection to controls
for (aWIt = aWidgets.constBegin(), aPIt = myPreSelection.constBegin();
(aWIt != aWidgets.constEnd()) && (aPIt != myPreSelection.constEnd());
++aWIt) {
aFilledWgt = aWgt;
}
}
+ // 2. ignore not obligatory widgets
+ for (; aWIt != aWidgets.constEnd(); ++aWIt) {
+ aWgt = (*aWIt);
+ if (aWgt && aWgt->isObligatory())
+ continue;
+ aFilledWgt = aWgt;
+ }
+ // 3. activate the next obligatory widget
myPropertyPanel->activateNextWidget(aFilledWgt);
if (aFilledWgt)
emit activatedByPreselection();
label="Last object" tooltip="Select line or arc" shape_types="edge">
</sketch_constraint_shape_selector>
- <doublevalue_editor label="Value" tooltip="Fillet radius" id="ConstraintValue" default="0" min="0">
+ <doublevalue_editor label="Value" tooltip="Fillet radius" id="ConstraintValue" default="1" min="0" obligatory="0">
<validator id="GeomValidators_Positive"/>
</doublevalue_editor>
</feature>