From aedcd0bf629247c15be0fcf1718c78c305efd453 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 8 Jun 2009 13:52:37 +0000 Subject: [PATCH] Fix of bug IPAL21165 - TC5.1.2: Incorrect GUI of the Build progress dilog --- src/VISUGUI/VisuGUI_BuildProgressDlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() ) ); -- 2.39.2