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 );
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 );
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 );