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

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