From: dmv Date: Thu, 23 Oct 2008 08:15:14 +0000 (+0000) Subject: Edit Mesh/Sub-Mesh window has strange "half-active" view, if do Compute. X-Git-Tag: V5_1_0a3~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da567d9f1e66abbdfc2bf7dea2b540b5b5b759fe;p=modules%2Fsmesh.git 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 4b4c109b5..259d936aa 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.cxx +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -75,9 +75,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 20bc86e78..f3e93409c 100644 --- a/src/SMESHGUI/SMESHGUI_Dialog.h +++ b/src/SMESHGUI/SMESHGUI_Dialog.h @@ -51,7 +51,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& );