From e5c60acda5559fe681c60dbbb92873aece8dd352 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 8 Jun 2009 13:52:54 +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 f3ce2471..48d459f5 100644 --- a/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx +++ b/src/VISUGUI/VisuGUI_BuildProgressDlg.cxx @@ -125,7 +125,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildFieldsButton = new QPushButton( myProgressBox ); myBuildFieldsButton->setEnabled( false ); myBuildFieldsButton->setFixedSize( 30, 30 ); - myBuildFieldsButton->setPaletteBackgroundColor( Qt::red ); + myBuildFieldsButton->setPaletteBackgroundColor( myBuildFieldsCheckBox->isChecked() ? Qt::red : Qt::gray ); connect( myBuildFieldsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) ); myBuildMinMaxCheckBox = new QCheckBox( tr( "BUILD_MINMAX" ), myProgressBox ); @@ -133,7 +133,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildMinMaxButton = new QPushButton( myProgressBox ); myBuildMinMaxButton->setEnabled( false ); myBuildMinMaxButton->setFixedSize( 30, 30 ); - myBuildMinMaxButton->setPaletteBackgroundColor( Qt::red ); + myBuildMinMaxButton->setPaletteBackgroundColor( myBuildMinMaxCheckBox->isChecked() ? Qt::red : Qt::gray ); connect( myBuildMinMaxCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) ); myBuildGroupsCheckBox = new QCheckBox( tr( "BUILD_GROUPS" ), myProgressBox ); @@ -141,7 +141,7 @@ VisuGUI_BuildProgressDlg::VisuGUI_BuildProgressDlg( QWidget* theParent ): myBuildGroupsButton = new QPushButton( myProgressBox ); myBuildGroupsButton->setEnabled( false ); myBuildGroupsButton->setFixedSize( 30, 30 ); - myBuildGroupsButton->setPaletteBackgroundColor( Qt::red ); + myBuildGroupsButton->setPaletteBackgroundColor( myBuildGroupsCheckBox->isChecked() ? Qt::red : Qt::gray ); connect( myBuildGroupsCheckBox, SIGNAL( clicked() ), this, SLOT( onBuildCheckBoxClicked() ) ); aProgressLayout->addWidget( aBuildEntitiesLabel, 0, 0 ); -- 2.39.2