Commit fd72c7b0 authored by Paul Tvete's avatar Paul Tvete
Browse files

QWidget::setBackgroundColor() is gone.

...and we have to tell Qt to paint the background.
parent 7bd6a636
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)));