-}
-
-//********************************************************************
-bool ModuleBase_WidgetValidated::setSelection(QList<ModuleBase_ViewerPrs>& theValues,
- const bool theToValidate)
-{
- if (theValues.empty()) {
- // In order to make reselection possible, set empty object and shape should be done
- setSelectionCustom(ModuleBase_ViewerPrs());
- return false;
- }
- // it removes the processed value from the parameters list
- ModuleBase_ViewerPrs aValue = theValues.takeFirst();
- bool isDone = false;
-
- if (!theToValidate || isValidInFilters(aValue)) {
- isDone = setSelectionCustom(aValue);
- // updateObject - to update/redisplay feature
- // it is commented in order to perfom it outside the method
- //updateObject(myFeature);
- // to storeValue()
- //emit valuesChanged();
- }
- return isDone;