mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[partition] Chase deprecations in Qt
This commit is contained in:
parent
ad868033f3
commit
7fd218d7bf
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue