From d4a2b286c0408f933272d845baacf9f70a97db68 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 9 Apr 2008 12:02:44 +0000 Subject: [PATCH] Fix for bug IPAL19502 (Qt4 porting. Edit Group. Ok (Apply) doesn't become active after change of color). --- src/SMESHGUI/SMESHGUI_GroupDlg.cxx | 11 +++++++++++ src/SMESHGUI/SMESHGUI_GroupDlg.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index ff0c476c5..536fe9ff6 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -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 diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.h b/src/SMESHGUI/SMESHGUI_GroupDlg.h index 18607e2aa..cab0697f6 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.h +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.h @@ -81,6 +81,7 @@ public slots: private slots: void onTypeChanged( int ); void onGrpTypeChanged( int ); + void onColorChanged( QColor ); void onOK(); void onClose(); -- 2.39.2