From 8d6f07695af3c4bbdf17fbd879bb12d39212c6d2 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 4 Jul 2016 11:27:02 +0300 Subject: [PATCH] Support of nested option buttons --- src/ModuleBase/ModuleBase_ToolBox.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); -- 2.39.2