From: nds Date: Mon, 4 Jul 2016 08:27:02 +0000 (+0300) Subject: Support of nested option buttons X-Git-Tag: V_2.5.0~244 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d6f07695af3c4bbdf17fbd879bb12d39212c6d2;p=modules%2Fshaper.git Support of nested option buttons --- diff --git a/src/ModuleBase/ModuleBase_ToolBox.cpp b/src/ModuleBase/ModuleBase_ToolBox.cpp index 1ab883c86..7d59cffc0 100644 --- a/src/ModuleBase/ModuleBase_ToolBox.cpp +++ b/src/ModuleBase/ModuleBase_ToolBox.cpp @@ -17,11 +17,14 @@ ModuleBase_ToolBox::ModuleBase_ToolBox( QWidget* theParent ) : QFrame( theParent ) { QVBoxLayout* aMainLayout = new QVBoxLayout( this ); - aMainLayout->setMargin( 0 ); - aMainLayout->setSpacing( 0 ); + aMainLayout->setMargin(0); + aMainLayout->setSpacing(2); myButtonsFrame = new QFrame( this ); + myStack = new QStackedWidget( this ); + myStack->setFrameStyle(QFrame::Box | QFrame::Raised); + aMainLayout->addWidget( myButtonsFrame, 0 ); aMainLayout->addWidget( myStack, 1 );