From d8398bc53c572327f1c9b64061bfbb64707daa41 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 18 Nov 2005 13:42:50 +0000 Subject: [PATCH] minor changes --- src/VISUGUI/VisuGUI_GaussPointsDlg.cxx | 8 +++++++- src/VISUGUI/VisuGUI_GaussPointsDlg.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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. -- 2.39.2