From: ouv Date: Mon, 8 Jun 2009 13:52:37 +0000 (+0000) Subject: Fix of bug IPAL21165 - TC5.1.2: Incorrect GUI of the Build progress dilog X-Git-Tag: V5_1_2rc2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aedcd0bf629247c15be0fcf1718c78c305efd453;p=modules%2Fvisu.git Fix of bug IPAL21165 - TC5.1.2: Incorrect GUI of the Build progress dilog --- diff --git a/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx b/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx index 210bbcdd..5a96a705 100644 --- a/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx +++ b/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx @@ -129,7 +129,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildFieldsButton->setEnabled( false ); myBuildFieldsButton->setFixedSize( 30, 30 ); aPal = myBuildFieldsButton->palette(); - aPal.setColor( myBuildFieldsButton->backgroundRole(), Qt::red ); + aPal.setColor( myBuildFieldsButton->backgroundRole(), myBuildFieldsCheckBox->isChecked() ? Qt::red : Qt::gray ); myBuildFieldsButton->setPalette( aPal ); connect( myBuildFieldsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) ); @@ -140,7 +140,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildMinMaxButton->setEnabled( false ); myBuildMinMaxButton->setFixedSize( 30, 30 ); aPal = myBuildMinMaxButton->palette(); - aPal.setColor( myBuildMinMaxButton->backgroundRole(), Qt::red ); + aPal.setColor( myBuildMinMaxButton->backgroundRole(), myBuildMinMaxCheckBox->isChecked() ? Qt::red : Qt::gray ); myBuildMinMaxButton->setPalette( aPal ); connect( myBuildMinMaxCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) ); @@ -151,7 +151,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildGroupsButton->setEnabled( false ); myBuildGroupsButton->setFixedSize( 30, 30 ); aPal = myBuildGroupsButton->palette(); - aPal.setColor( myBuildGroupsButton->backgroundRole(), Qt::red ); + aPal.setColor( myBuildGroupsButton->backgroundRole(), myBuildGroupsCheckBox->isChecked() ? Qt::red : Qt::gray ); myBuildGroupsButton->setPalette( aPal ); connect( myBuildGroupsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) );