1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchShapePlugin_PageGroupBox.h
4 // Created: 13 Dec 2015
5 // Author: Natalia ERMOLAEVA
7 #include <SketchShapePlugin_WidgetCheckGroupBox.h>
9 #include <SketchShapePlugin_PageGroupBox.h>
11 SketchShapePlugin_WidgetCheckGroupBox::SketchShapePlugin_WidgetCheckGroupBox(QWidget* theParent,
12 const Config_WidgetAPI* theData,
13 const std::string& theParentId)
14 : ModuleBase_WidgetCheckGroupBox(theParent, theData, theParentId)
18 void SketchShapePlugin_WidgetCheckGroupBox::setHighlighted(bool isHighlighted)
20 SketchShapePlugin_PageGroupBox* aShapeGroupBox = 0;
21 QWidget* aParent = qobject_cast<QWidget*>(parent());
23 aShapeGroupBox = dynamic_cast<SketchShapePlugin_PageGroupBox*>(aParent);
26 aParent = qobject_cast<QWidget*>(aParent->parent());
30 aShapeGroupBox->setHighlightedGroupBox(isHighlighted);