14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
|
19 #include <QResizeEvent> |
|
20 #include <QCoreApplication> |
|
21 #include <QDebug> |
|
22 |
19 #include "frameTeam.h" |
23 #include "frameTeam.h" |
20 #include "teamselhelper.h" |
24 #include "teamselhelper.h" |
21 #include "hwconsts.h" |
25 #include "hwconsts.h" |
22 |
|
23 #include <QResizeEvent> |
|
24 #include <QCoreApplication> |
|
25 |
26 |
26 FrameTeams::FrameTeams(QWidget* parent) : |
27 FrameTeams::FrameTeams(QWidget* parent) : |
27 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
28 QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this), nonInteractive(false) |
28 { |
29 { |
29 mainLayout.setSpacing(1); |
30 mainLayout.setSpacing(1); |
104 pTeamShowWidget->changeTeamColor(team.teamColor); |
105 pTeamShowWidget->changeTeamColor(team.teamColor); |
105 } |
106 } |
106 |
107 |
107 QWidget* FrameTeams::getTeamWidget(HWTeam team) |
108 QWidget* FrameTeams::getTeamWidget(HWTeam team) |
108 { |
109 { |
|
110 //qDebug() << "FrameTeams::getTeamWidget getNetID() = " << team.getNetID(); |
109 tmapTeamToWidget::iterator it=teamToWidget.find(team); |
111 tmapTeamToWidget::iterator it=teamToWidget.find(team); |
110 QWidget* ret = it!=teamToWidget.end() ? it.value() : 0; |
112 QWidget* ret = it!=teamToWidget.end() ? it.value() : 0; |
111 return ret; |
113 return ret; |
112 } |
114 } |
113 |
115 |