From: eap Date: Fri, 8 Nov 2019 12:06:04 +0000 (+0300) Subject: #17960 [CEA 17952] MG-Hexa hypothesis panel: add option button not active X-Git-Tag: V9_5_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e9864349ca5898a3501dd98a33388f92d14bfc77;p=plugins%2Fhexoticplugin.git #17960 [CEA 17952] MG-Hexa hypothesis panel: add option button not active --- diff --git a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx index 42bedce..9de1dc8 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.cxx @@ -306,6 +306,7 @@ QFrame* HexoticPluginGUI_HypothesisCreator::buildFrame() connect( mySmpWidget->pushButton_1, SIGNAL( clicked() ), this, SLOT( onAddLocalSize() ) ); connect( mySmpWidget->pushButton_2, SIGNAL( clicked() ), this, SLOT( onRemoveLocalSize() ) ); connect( aTabWidget, SIGNAL( currentChanged(int)), this, SLOT( onTabChanged( int ) ) ); + connect( myAdvWidget->addBtn, SIGNAL( clicked() ), this, SLOT( onAddOption() ) ); return fr; } @@ -781,3 +782,8 @@ void HexoticPluginGUI_HypothesisCreator::onTabChanged(int i) myVLWidget->myFacesWithLayers->ShowPreview( i == VL_TAB ); myVLWidget->myImprintedFaces->ShowPreview( false ); } + +void HexoticPluginGUI_HypothesisCreator::onAddOption() +{ + myAdvWidget->AddOption( NULL, true ); +} diff --git a/src/GUI/HexoticPluginGUI_HypothesisCreator.h b/src/GUI/HexoticPluginGUI_HypothesisCreator.h index 884cab4..e68c786 100644 --- a/src/GUI/HexoticPluginGUI_HypothesisCreator.h +++ b/src/GUI/HexoticPluginGUI_HypothesisCreator.h @@ -122,6 +122,7 @@ protected slots: void onAddLocalSize(); void onRemoveLocalSize(); void onTabChanged(int); + void onAddOption(); };