mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
62655e17c6
commit
445f28d26f
@ -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 );
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user