Replace all occurences of QPalette::Background with QPalette::Window

QPalette::Background is deprecated and gives warning in Qt 5.13
This commit is contained in:
Gaute Lindkvist 2019-12-04 09:46:00 +01:00
parent 62655e17c6
commit 445f28d26f
7 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ RiuDraggableOverlayFrame::RiuDraggableOverlayFrame( QWidget* parent, QWidget* wi
RiuWidgetDragger* dragger = new RiuWidgetDragger( this, widgetToSnapTo );
QPalette pal = this->palette();
pal.setColor( QPalette::Background, backgroundColor );
pal.setColor( QPalette::Window, backgroundColor );
setAutoFillBackground( true );
setPalette( pal );
setFrameShape( QFrame::Box );

View File

@ -65,7 +65,7 @@ RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot( RimFlowCharacteristicsPl
// White background
QPalette pal = this->palette();
pal.setColor( QPalette::Background, Qt::white );
pal.setColor( QPalette::Window, Qt::white );
this->setAutoFillBackground( true );
this->setPalette( pal );

View File

@ -82,7 +82,7 @@ RiuGridPlotWindow::RiuGridPlotWindow( RimGridPlotWindow* plotDefinition, QWidget
m_gridLayout->setSpacing( 1 );
QPalette newPalette( palette() );
newPalette.setColor( QPalette::Background, Qt::white );
newPalette.setColor( QPalette::Window, Qt::white );
setPalette( newPalette );
setAutoFillBackground( true );

View File

@ -129,7 +129,7 @@ void RiuPvtPlotWidget::setPlotDefaults( QwtPlot* plot )
{
// Plot background and frame look
QPalette newPalette( plot->palette() );
newPalette.setColor( QPalette::Background, Qt::white );
newPalette.setColor( QPalette::Window, Qt::white );
plot->setPalette( newPalette );
plot->setAutoFillBackground( true );

View File

@ -39,7 +39,7 @@ void RiuQwtPlotTools::setCommonPlotBehaviour( QwtPlot* plot )
// Plot background and frame look
QPalette newPalette( plot->palette() );
newPalette.setColor( QPalette::Background, Qt::white );
newPalette.setColor( QPalette::Window, Qt::white );
plot->setPalette( newPalette );
plot->setAutoFillBackground( true );

View File

@ -54,7 +54,7 @@ RiuTofAccumulatedPhaseFractionsPlot::RiuTofAccumulatedPhaseFractionsPlot( RimTof
m_plotDefinition = plotDefinition;
QPalette newPalette( palette() );
newPalette.setColor( QPalette::Background, Qt::white );
newPalette.setColor( QPalette::Window, Qt::white );
setPalette( newPalette );
setAutoFillBackground( true );
@ -225,7 +225,7 @@ void RiuTofAccumulatedPhaseFractionsPlot::setCommonPlotBehaviour( QwtPlot* plot
// Plot background and frame look
QPalette newPalette( plot->palette() );
newPalette.setColor( QPalette::Background, Qt::white );
newPalette.setColor( QPalette::Window, Qt::white );
plot->setPalette( newPalette );
plot->setAutoFillBackground( true );

View File

@ -62,7 +62,7 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
// White background
QPalette pal = this->palette();
pal.setColor( QPalette::Background, Qt::white );
pal.setColor( QPalette::Window, Qt::white );
this->setAutoFillBackground( true );
this->setPalette( pal );