Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,9 @@ GameBoard::GameBoard(QWidget *parent) ...@@ -36,7 +36,9 @@ GameBoard::GameBoard(QWidget *parent)
frame->setFrameStyle( QFrame::WinPanel | QFrame::Sunken ); frame->setFrameStyle( QFrame::WinPanel | QFrame::Sunken );
cannonField = new CannonField( this ); 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( angle,SIGNAL(valueChanged(int)), cannonField,SLOT(setAngle(int)));
connect( cannonField,SIGNAL(angleChanged(int)), angle,SLOT(setValue(int))); connect( cannonField,SIGNAL(angleChanged(int)), angle,SLOT(setValue(int)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment