--- a/QTfrontend/teamselhelper.cpp Sun Jan 21 19:51:02 2007 +0000
+++ b/QTfrontend/teamselhelper.cpp Sun Jan 21 19:53:25 2007 +0000
@@ -36,7 +36,7 @@
mainLayout.setSpacing(1);
mainLayout.setMargin(2);
this->setMaximumHeight(35);
- QIcon difficultyIcon=team.netTeam ? QIcon(QString(":/res/net.png"))
+ QIcon difficultyIcon=team.isNetTeam() ? QIcon(QString(":/res/net.png"))
: QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
QPalette newPalette = palette();
@@ -68,6 +68,7 @@
// hedgehogs num
phhoger=new CHedgehogerWidget(this);
+ connect(phhoger, SIGNAL(hedgehogsNumChanged()), this, SLOT(hhNumChanged()));
mainLayout.addWidget(phhoger);
}
@@ -75,6 +76,17 @@
QObject::connect(bText, SIGNAL(clicked()), this, SLOT(activateTeam()));
}
+void TeamShowWidget::setHHNum(unsigned int num)
+{
+ phhoger->setHHNum(num);
+}
+
+void TeamShowWidget::hhNumChanged()
+{
+ m_team.numHedgehogs=phhoger->getHedgehogsNum();
+ emit hhNmChanged(m_team);
+}
+
void TeamShowWidget::activateTeam()
{
emit teamStatusChanged(m_team);