]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug IPAL19502 (Qt4 porting. Edit Group. Ok (Apply) doesn't become active...
authormzn <mzn@opencascade.com>
Wed, 9 Apr 2008 12:02:44 +0000 (12:02 +0000)
committermzn <mzn@opencascade.com>
Wed, 9 Apr 2008 12:02:44 +0000 (12:02 +0000)
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
src/SMESHGUI/SMESHGUI_GroupDlg.h

index ff0c476c5c70fb800a686bfac4f487f321ef1bdb..536fe9ff668d7ea31354b57c638c13681222e39e 100644 (file)
@@ -379,6 +379,8 @@ void SMESHGUI_GroupDlg::initDialog(bool create)
   connect(myGroupBtn,      SIGNAL(clicked()), this, SLOT(setCurrentSelection()));
   connect(myGeomGroupBtn,  SIGNAL(toggled(bool)), this, SLOT(onGeomSelectionButton(bool)));
 
+  connect(myColorBtn, SIGNAL(changed( QColor )), this, SLOT(onColorChanged( QColor )));
+
   connect(myOKBtn,    SIGNAL(clicked()), this, SLOT(onOK()));
   connect(myApplyBtn, SIGNAL(clicked()), this, SLOT(onApply()));
   connect(myCloseBtn, SIGNAL(clicked()), this, SLOT(onClose()));
@@ -633,6 +635,15 @@ void SMESHGUI_GroupDlg::onGrpTypeChanged (int id)
   myGrpTypeId = id;
 }
 
+//=================================================================================
+// function : onColorChanged()
+// purpose  : Color button management
+//=================================================================================
+void SMESHGUI_GroupDlg::onColorChanged(QColor theColor)
+{
+  updateButtons();
+}
+
 //=================================================================================
 // function : setSelectionMode()
 // purpose  : Radio button management
index 18607e2aa4ee3d425f46b659b00de99402bfd4fe..cab0697f6d206ab6ee1cdba54c6b939c3e0999a5 100644 (file)
@@ -81,6 +81,7 @@ public slots:
 private slots:
   void                          onTypeChanged( int );
   void                          onGrpTypeChanged( int );
+  void                          onColorChanged( QColor );
   
   void                          onOK();
   void                          onClose();