[welcome] Remove superfluous call to QColor::value()

This commit is contained in:
Adriaan de Groot 2019-11-26 17:28:23 +01:00
parent 7fd218d7bf
commit 6dfcbd757b

View File

@ -74,7 +74,7 @@ ResultsListWidget::init( const Calamares::RequirementsList& checkEntries )
ciw->setAutoFillBackground( true );
QPalette pal( ciw->palette() );
QColor bgColor = pal.window().color().value();
QColor bgColor = pal.window().color();
int bgHue = ( entry.satisfied ) ? bgColor.hue() : ( entry.mandatory ) ? 0 : 60;
bgColor.setHsv( bgHue, 64, bgColor.value() );
pal.setColor( QPalette::Window, bgColor );
@ -199,7 +199,7 @@ ResultsListWidget::showDetailsDialog( const Calamares::RequirementsList& checkEn
ciw->setAutoFillBackground( true );
QPalette pal( ciw->palette() );
QColor bgColor = pal.window().color().value();
QColor bgColor = pal.window().color();
int bgHue = ( entry.satisfied ) ? bgColor.hue() : ( entry.mandatory ) ? 0 : 60;
bgColor.setHsv( bgHue, 64, bgColor.value() );
pal.setColor( QPalette::Window, bgColor );