From fd72c7b057eae3fe7d155ed20d8933485967d8a3 Mon Sep 17 00:00:00 2001
From: Paul Olav Tvete <paul.tvete@qt.io>
Date: Tue, 22 May 2018 16:07:53 +0200
Subject: [PATCH] QWidget::setBackgroundColor() is gone.

...and we have to tell Qt to paint the background.
---
 t14/gamebrd.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t14/gamebrd.cpp b/t14/gamebrd.cpp
index 8ccc271..d7ad0c8 100644
--- a/t14/gamebrd.cpp
+++ b/t14/gamebrd.cpp
@@ -36,7 +36,9 @@ GameBoard::GameBoard(QWidget *parent)
     frame->setFrameStyle( QFrame::WinPanel | QFrame::Sunken );
 
     cannonField = new CannonField( this );
-    cannonField->setBackgroundColor( QColor( 250, 250, 200) );
+
+    cannonField->setPalette( QPalette(QColor(250, 250, 200)) );
+    cannonField->setAutoFillBackground(true);
 
     connect( angle,SIGNAL(valueChanged(int)), cannonField,SLOT(setAngle(int)));
     connect( cannonField,SIGNAL(angleChanged(int)), angle,SLOT(setValue(int)));
-- 
GitLab