QTfrontend/teamselect.cpp
changeset 1424 2b45d88716b0
parent 1389 6e411559cc7b
child 1425 7ee750565e2d
equal deleted inserted replaced
1423:c23fa62f7c46 1424:2b45d88716b0
   212 }
   212 }
   213 
   213 
   214 TeamSelWidget::TeamSelWidget(QWidget* parent) :
   214 TeamSelWidget::TeamSelWidget(QWidget* parent) :
   215   QGroupBox(parent), mainLayout(this), m_acceptOuter(false)
   215   QGroupBox(parent), mainLayout(this), m_acceptOuter(false)
   216 {
   216 {
   217   setTitle(QGroupBox::tr("Playing teams"));
   217 	setTitle(QGroupBox::tr("Playing teams"));
   218   framePlaying = new FrameTeams();
   218 	framePlaying = new FrameTeams();
   219   frameDontPlaying = new FrameTeams();
   219 	framePlaying->setStyleSheet(
   220   QPalette p;
   220 			"FrameTeams{"
   221   p.setColor(QPalette::Window, QColor(0x13, 0x0f, 0x2c));
   221 				"border: solid;"
   222   addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200);
   222 				"border-width: 1px;"
   223   addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
   223 				"border-radius: 16px;"
   224   QPushButton * btnSetup = new QPushButton(this);
   224 				"border-color: #ffcc00;"
   225   btnSetup->setText(QPushButton::tr("Setup"));
   225 				"}"
   226   connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
   226 	);
   227   mainLayout.addWidget(btnSetup);
   227 	frameDontPlaying = new FrameTeams();
       
   228 	frameDontPlaying->setStyleSheet(
       
   229 			"FrameTeams{"
       
   230 				"background-image: url(\":/res/panelbg.png\");"
       
   231 				"}"
       
   232 	);
       
   233 	
       
   234 	QPalette p;
       
   235 	p.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
       
   236 	addScrArea(framePlaying, p.color(QPalette::Window).light(105), 200);
       
   237 	addScrArea(frameDontPlaying, p.color(QPalette::Window).dark(105), 0);
       
   238 	QPushButton * btnSetup = new QPushButton(this);
       
   239 	btnSetup->setText(QPushButton::tr("Setup"));
       
   240 	connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
       
   241 	mainLayout.addWidget(btnSetup);
   228 }
   242 }
   229 
   243 
   230 void TeamSelWidget::setAcceptOuter(bool acceptOuter)
   244 void TeamSelWidget::setAcceptOuter(bool acceptOuter)
   231 {
   245 {
   232   m_acceptOuter=acceptOuter;
   246   m_acceptOuter=acceptOuter;