equal
deleted
inserted
replaced
26 |
26 |
27 #include "teamselhelper.h" |
27 #include "teamselhelper.h" |
28 #include "hwconsts.h" |
28 #include "hwconsts.h" |
29 #include "frameTeam.h" |
29 #include "frameTeam.h" |
30 #include "colorwidget.h" |
30 #include "colorwidget.h" |
|
31 #include "DataManager.h" |
31 |
32 |
32 void TeamLabel::teamButtonClicked() |
33 void TeamLabel::teamButtonClicked() |
33 { |
34 { |
34 emit teamActivated(text()); |
35 emit teamActivated(text()); |
35 } |
36 } |
67 "}"); |
68 "}"); |
68 |
69 |
69 if(m_isPlaying) |
70 if(m_isPlaying) |
70 { |
71 { |
71 // team color |
72 // team color |
72 colorWidget = new ColorWidget(colorsModel, this); |
73 colorWidget = new ColorWidget(DataManager::instance().colorsModel(), this); |
73 colorWidget->setMinimumWidth(26); |
74 colorWidget->setMinimumWidth(26); |
74 colorWidget->setMaximumWidth(26); |
75 colorWidget->setMaximumWidth(26); |
75 colorWidget->setMinimumHeight(26); |
76 colorWidget->setMinimumHeight(26); |
76 colorWidget->setMaximumHeight(26); |
77 colorWidget->setMaximumHeight(26); |
77 colorWidget->setColor(team.color()); |
78 colorWidget->setColor(team.color()); |