50
|
1 |
#include "teamselhelper.h"
|
|
2 |
|
|
3 |
#include <QPixmap>
|
|
4 |
#include <QPushButton>
|
|
5 |
|
|
6 |
void TeamLabel::teamButtonClicked()
|
|
7 |
{
|
|
8 |
emit teamActivated(text());
|
|
9 |
}
|
|
10 |
|
61
|
11 |
TeamShowWidget::TeamShowWidget(tmprop team, QWidget * parent) :
|
|
12 |
QWidget(parent), mainLayout(this), m_team(team)
|
50
|
13 |
{
|
|
14 |
QLabel* pixlbl=new QLabel();
|
|
15 |
pixlbl->setPixmap(QPixmap("./Data/Graphics/thinking.png"));
|
|
16 |
mainLayout.addWidget(pixlbl);
|
|
17 |
|
|
18 |
TeamLabel* lbl=new TeamLabel(team.teamName);
|
|
19 |
mainLayout.addWidget(lbl);
|
|
20 |
|
|
21 |
QPushButton* butt=new QPushButton("o");
|
|
22 |
mainLayout.addWidget(butt);
|
|
23 |
|
|
24 |
QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam()));
|
|
25 |
}
|
|
26 |
|
|
27 |
void TeamShowWidget::activateTeam()
|
|
28 |
{
|
|
29 |
emit teamStatusChanged(m_team);
|
|
30 |
}
|