From: nds Date: Mon, 4 Jul 2016 09:18:15 +0000 (+0300) Subject: Support of nested option buttons X-Git-Tag: V_2.5.0~243 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3e242c1272da9d39804739ef74a830414ee0ca9;p=modules%2Fshaper.git Support of nested option buttons --- diff --git a/src/ModuleBase/ModuleBase_ToolBox.cpp b/src/ModuleBase/ModuleBase_ToolBox.cpp index 7d59cffc0..d1b52ef89 100644 --- a/src/ModuleBase/ModuleBase_ToolBox.cpp +++ b/src/ModuleBase/ModuleBase_ToolBox.cpp @@ -23,7 +23,6 @@ ModuleBase_ToolBox::ModuleBase_ToolBox( QWidget* theParent ) myButtonsFrame = new QFrame( this ); myStack = new QStackedWidget( this ); - myStack->setFrameStyle(QFrame::Box | QFrame::Raised); aMainLayout->addWidget( myButtonsFrame, 0 ); aMainLayout->addWidget( myStack, 1 ); diff --git a/src/ModuleBase/ModuleBase_WidgetToolbox.cpp b/src/ModuleBase/ModuleBase_WidgetToolbox.cpp index c1f35c987..05759642d 100644 --- a/src/ModuleBase/ModuleBase_WidgetToolbox.cpp +++ b/src/ModuleBase/ModuleBase_WidgetToolbox.cpp @@ -49,8 +49,7 @@ int ModuleBase_WidgetToolbox::addPage(ModuleBase_PageBase* thePage, { ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon); QFrame* aFrame = dynamic_cast(thePage); - aFrame->setFrameShape(QFrame::Box); - aFrame->setFrameStyle(QFrame::Sunken); + aFrame->setFrameStyle(QFrame::Box | QFrame::Raised); myToolBox->addItem(aFrame, theName, theIcon ); return myToolBox->count(); } diff --git a/src/PythonAddons/macros/rectangle/widget.xml b/src/PythonAddons/macros/rectangle/widget.xml index d7c83bc86..5624d2840 100644 --- a/src/PythonAddons/macros/rectangle/widget.xml +++ b/src/PythonAddons/macros/rectangle/widget.xml @@ -11,7 +11,7 @@ + enable_value="enable_by_preferences"/>