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; |