Commit fd72c7b0 authored by Paul Tvete's avatar Paul Tvete

QWidget::setBackgroundColor() is gone.

...and we have to tell Qt to paint the background.
parent 7bd6a636
......@@ -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)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment