From: dmv Date: Thu, 23 Oct 2008 08:13:40 +0000 (+0000) Subject: Edit Mesh/Sub-Mesh window has strange "half-active" view, if do Compute. X-Git-Tag: RELIQUAT_4x_25102008~1 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=5958898517117318188b2af692852be9082977dc;hp=54e2aba6c506ced5f560dae75bf47ff3410ac2e3 Edit Mesh/Sub-Mesh window has strange "half-active" view, if do Compute. --- diff --git a/src/SMESHGUI/SMESHGUI_Dialog.cxx b/src/SMESHGUI/SMESHGUI_Dialog.cxx index 54ef6bd89..74b4226ec 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.cxx +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -70,9 +70,14 @@ void SMESHGUI_Dialog::show() // function : setContentActive // purpose : //================================================================================= -void SMESHGUI_Dialog::setContentActive( const bool active ) const +void SMESHGUI_Dialog::setContentActive( const bool active ) { mainFrame()->setEnabled( active ); + setButtonEnabled( active, OK ); + setButtonEnabled( active, Apply ); + setButtonEnabled( active, Cancel ); + setButtonEnabled( active, Close ); + setButtonEnabled( active, Help ); } //================================================================================= diff --git a/src/SMESHGUI/SMESHGUI_Dialog.h b/src/SMESHGUI/SMESHGUI_Dialog.h index 676b601a4..2508c28b9 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.h +++ b/src/SMESHGUI/SMESHGUI_Dialog.h @@ -52,7 +52,7 @@ public: virtual void show(); //! set all content to enable (parameter is true) or disable state - virtual void setContentActive( const bool ) const; + virtual void setContentActive( const bool ); //! Return hard-coded prefix using to differ overlapping types static int prefix( const QString& );