From: ouv Date: Fri, 18 Nov 2005 13:42:50 +0000 (+0000) Subject: minor changes X-Git-Tag: BR-D5-38-2003_D2005-24-11~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d8398bc53c572327f1c9b64061bfbb64707daa41;p=modules%2Fvisu.git minor changes --- diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx index bbaff24b..478adbd0 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.cxx @@ -244,7 +244,7 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent, bool S // signals and slots connections =========================================== connect( myRBLocal, SIGNAL( toggled( bool ) ), myCBDisplayed, SLOT( setEnabled( bool ) ) ); - connect( myRBGlobal, SIGNAL( toggled( bool ) ), myCBDisplayed, SLOT( setChecked( bool ) ) ); + connect( myRBGlobal, SIGNAL( clicked() ), this, SLOT( onSetDisplayGlobal() ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), ColorLabel, SLOT( setEnabled( bool ) ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), ColorSpin, SLOT( setEnabled( bool ) ) ); connect( RainbowButton, SIGNAL( toggled( bool ) ), LabelLabel, SLOT( setEnabled( bool ) ) ); @@ -258,6 +258,12 @@ VisuGUI_GaussScalarBarPane::VisuGUI_GaussScalarBarPane (QWidget * parent, bool S myIsStoreTextProp = false; } +void VisuGUI_GaussScalarBarPane::onSetDisplayGlobal() +{ + myCBDisplayed->setChecked( true ); +} + + /** * Initialise dialog box from presentation object */ diff --git a/src/VISUGUI/VisuGUI_GaussPointsDlg.h b/src/VISUGUI/VisuGUI_GaussPointsDlg.h index 82b24e87..205496cf 100644 --- a/src/VISUGUI/VisuGUI_GaussPointsDlg.h +++ b/src/VISUGUI/VisuGUI_GaussPointsDlg.h @@ -116,6 +116,7 @@ class VisuGUI_GaussScalarBarPane : public QVBox void changeRange( int ); void XYChanged( double ); void onTextPref(); + void onSetDisplayGlobal(); }; //! Create Gauss Points Presentation Dialog.