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