From e9864349ca5898a3501dd98a33388f92d14bfc77 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 8 Nov 2019 15:06:04 +0300 Subject: [PATCH] #17960 [CEA 17952] MG-Hexa hypothesis panel: add option button not active --- src/GUI/HexoticPluginGUI_HypothesisCreator.cxx | 6 ++++++ src/GUI/HexoticPluginGUI_HypothesisCreator.h | 1 + 2 files changed, 7 insertions(+) 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(); }; -- 2.39.2