Salome HOME
Preselection realization for multi-selector widget to accept some selection values.
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.cpp
index ceeeb6bff17f662dd6d2367f90bc9fef00c53374..c2ca8a4d2d863cefb118caf7f7dd05e92a5cb639 100644 (file)
@@ -85,7 +85,7 @@ PartSet_WidgetSketchLabel::~PartSet_WidgetSketchLabel()
   erasePreviewPlanes();
 }
 
-bool PartSet_WidgetSketchLabel::setSelection(ModuleBase_ViewerPrs theValue)
+bool PartSet_WidgetSketchLabel::setSelection(const QList<ModuleBase_ViewerPrs>& theValues, int& thePosition)
 {
   // do not use the given selection if the plane of the sketch has been already set.
   // If this check is absent, a selected plane in the viewer can be set in the sketch
@@ -93,7 +93,7 @@ bool PartSet_WidgetSketchLabel::setSelection(ModuleBase_ViewerPrs theValue)
   if (plane().get())
     return true;
 
-  return ModuleBase_WidgetValidated::setSelection(theValue);
+  return ModuleBase_WidgetValidated::setSelection(theValues, thePosition);
 }
 
 QList<QWidget*> PartSet_WidgetSketchLabel::getControls() const