diff -r 482f78c595ec -r 2d0f404cdf05 QTfrontend/teamselhelper.cpp --- a/QTfrontend/teamselhelper.cpp Mon Aug 28 19:02:57 2006 +0000 +++ b/QTfrontend/teamselhelper.cpp Sun Sep 03 12:56:13 2006 +0000 @@ -1,16 +1,19 @@ #include "teamselhelper.h" +#include "hwconsts.h" #include #include -#include "hwconsts.h" +#include + +#include "hedgehogerWidget.h" void TeamLabel::teamButtonClicked() { emit teamActivated(text()); } -TeamShowWidget::TeamShowWidget(HWTeam team, QWidget * parent) : - QWidget(parent), mainLayout(this), m_team(team) +TeamShowWidget::TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent) : + QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying) { this->setMaximumHeight(40); QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40)); @@ -29,6 +32,11 @@ bText->setFlat(true); mainLayout.addWidget(bText); + if(m_isPlaying) { + CHedgehogerWidget* phhoger=new CHedgehogerWidget(this); + mainLayout.addWidget(phhoger); + } + QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam())); QObject::connect(bText, SIGNAL(clicked()), this, SLOT(activateTeam())); }