[summary][calamares] Chase deprecations in Qt (QWidget::background())
This commit is contained in:
parent
a70b7ad89e
commit
bd5b63b02e
@ -96,7 +96,7 @@ ProgressTreeDelegate::paintViewStep( QPainter* painter,
|
|||||||
= Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarTextHighlight );
|
= Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarTextHighlight );
|
||||||
if ( textHighlight.isEmpty() )
|
if ( textHighlight.isEmpty() )
|
||||||
{
|
{
|
||||||
painter->setBrush( CalamaresApplication::instance()->mainWindow()->palette().background() );
|
painter->setBrush( CalamaresApplication::instance()->mainWindow()->palette().window() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -184,7 +184,7 @@ SummaryPage::createBodyLabel( const QString& text ) const
|
|||||||
QLabel* label = new QLabel;
|
QLabel* label = new QLabel;
|
||||||
label->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
label->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
||||||
QPalette pal( palette() );
|
QPalette pal( palette() );
|
||||||
pal.setColor( QPalette::Background, palette().background().color().lighter( 108 ) );
|
pal.setColor( QPalette::Background, palette().window().color().lighter( 108 ) );
|
||||||
label->setAutoFillBackground( true );
|
label->setAutoFillBackground( true );
|
||||||
label->setPalette( pal );
|
label->setPalette( pal );
|
||||||
label->setText( text );
|
label->setText( text );
|
||||||
|
Loading…
Reference in New Issue
Block a user