]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Support of nested option buttons
authornds <nds@opencascade.com>
Mon, 4 Jul 2016 09:18:15 +0000 (12:18 +0300)
committernds <nds@opencascade.com>
Mon, 4 Jul 2016 09:18:15 +0000 (12:18 +0300)
src/ModuleBase/ModuleBase_ToolBox.cpp
src/ModuleBase/ModuleBase_WidgetToolbox.cpp
src/PythonAddons/macros/rectangle/widget.xml

index 7d59cffc02248d65a8c5d50908245957fac42bf6..d1b52ef89de0a8e267f7b1acfe0de975f232583c 100644 (file)
@@ -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 );
index c1f35c987cae6f5b192a32ff2d033d820e5f5afb..05759642d17c2145618181b60f6c394c82549005 100644 (file)
@@ -49,8 +49,7 @@ int ModuleBase_WidgetToolbox::addPage(ModuleBase_PageBase* thePage,
 {
   ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
   QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
-  aFrame->setFrameShape(QFrame::Box);
-  aFrame->setFrameStyle(QFrame::Sunken);
+  aFrame->setFrameStyle(QFrame::Box | QFrame::Raised);
   myToolBox->addItem(aFrame, theName, theIcon );
   return myToolBox->count();
 }
index d7c83bc86b7b1fcd16b0032d7e5da5ca68f572b4..5624d2840385e73bc8e5f3ba3b1e1effd0c7bac6 100644 (file)
@@ -11,7 +11,7 @@
         <sketch-2dpoint_selector id="RectStartPoint" accept_expressions="0" title="Start point" tooltip="Start point coordinates"
                                  enable_value="enable_by_preferences"/>
         <sketch-2dpoint_selector id="RectEndPoint" accept_expressions="0" title="End point" tooltip="End point coordinates"
-                                 enable_value="false"/>
+                                 enable_value="enable_by_preferences"/>
         <boolvalue id="Auxiliary" label="Auxiliary" default="false" tooltip="Construction element" obligatory="0"/>
         <validator id="GeomValidators_Different" parameters="RectStartPoint,RectEndPoint"/>
       </feature>