[partition] Chase deprecations in Qt

This commit is contained in:
Adriaan de Groot 2019-11-26 16:56:45 +01:00
parent ad868033f3
commit 7fd218d7bf
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ PartitionLabelsView::drawLabels( QPainter* painter,
labelRect.adjust( 0, -LAYOUT_MARGIN, 0, -2*LAYOUT_MARGIN );
painter->translate( 0.5, 0.5 );
QRect hoverRect = labelRect.adjusted( 0, 0, -1, -1 );
painter->setBrush( QPalette().background().color().lighter( 102 ) );
painter->setBrush( QPalette().window().color().lighter( 102 ) );
painter->setPen( Qt::NoPen );
painter->drawRoundedRect( hoverRect, CORNER_RADIUS, CORNER_RADIUS );

View File

@ -277,7 +277,7 @@ PartitionViewStep::createSummaryWidget() const
jobsLabel->setText( jobsLines.join( "<br/>" ) );
jobsLabel->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
QPalette pal;
pal.setColor( QPalette::Background, pal.background().color().lighter( 108 ) );
pal.setColor( QPalette::Background, pal.window().color().lighter( 108 ) );
jobsLabel->setAutoFillBackground( true );
jobsLabel->setPalette( pal );
}