[partition] Chase deprecations in Qt
This commit is contained in:
parent
ad868033f3
commit
7fd218d7bf
@ -276,7 +276,7 @@ PartitionLabelsView::drawLabels( QPainter* painter,
|
|||||||
labelRect.adjust( 0, -LAYOUT_MARGIN, 0, -2*LAYOUT_MARGIN );
|
labelRect.adjust( 0, -LAYOUT_MARGIN, 0, -2*LAYOUT_MARGIN );
|
||||||
painter->translate( 0.5, 0.5 );
|
painter->translate( 0.5, 0.5 );
|
||||||
QRect hoverRect = labelRect.adjusted( 0, 0, -1, -1 );
|
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->setPen( Qt::NoPen );
|
||||||
painter->drawRoundedRect( hoverRect, CORNER_RADIUS, CORNER_RADIUS );
|
painter->drawRoundedRect( hoverRect, CORNER_RADIUS, CORNER_RADIUS );
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ PartitionViewStep::createSummaryWidget() const
|
|||||||
jobsLabel->setText( jobsLines.join( "<br/>" ) );
|
jobsLabel->setText( jobsLines.join( "<br/>" ) );
|
||||||
jobsLabel->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
jobsLabel->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
||||||
QPalette pal;
|
QPalette pal;
|
||||||
pal.setColor( QPalette::Background, pal.background().color().lighter( 108 ) );
|
pal.setColor( QPalette::Background, pal.window().color().lighter( 108 ) );
|
||||||
jobsLabel->setAutoFillBackground( true );
|
jobsLabel->setAutoFillBackground( true );
|
||||||
jobsLabel->setPalette( pal );
|
jobsLabel->setPalette( pal );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user