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 5139f1cadb
commit 9599b309bc
5 changed files with 6 additions and 6 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

@ -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 );