9 } |
9 } |
10 |
10 |
11 TeamShowWidget::TeamShowWidget(tmprop team, QWidget * parent) : |
11 TeamShowWidget::TeamShowWidget(tmprop team, QWidget * parent) : |
12 QWidget(parent), mainLayout(this), m_team(team) |
12 QWidget(parent), mainLayout(this), m_team(team) |
13 { |
13 { |
14 this->setMaximumHeight(30); |
14 this->setMaximumHeight(40); |
15 QLabel* pixlbl=new QLabel(); |
15 QLabel* pixlbl=new QLabel(); |
16 pixlbl->setPixmap(QPixmap("./Data/Graphics/thinking.png")); |
16 pixlbl->setPixmap(QPixmap("./Data/Graphics/thinking.png")); |
17 mainLayout.addWidget(pixlbl); |
17 mainLayout.addWidget(pixlbl); |
18 |
18 |
19 TeamLabel* lbl=new TeamLabel(team.teamName); |
19 TeamLabel* lbl=new TeamLabel(team.teamName); |
20 mainLayout.addWidget(lbl); |
20 mainLayout.addWidget(lbl); |
21 |
21 |
22 QPushButton* butt=new QPushButton("o"); |
22 QPushButton* butt=new QPushButton("o"); |
23 butt->setGeometry(0, 0, 25, 25); |
23 butt->setGeometry(0, 0, 25, 25); |
24 butt->setMaximumWidth(25); |
24 butt->setMaximumWidth(30); |
25 mainLayout.addWidget(butt); |
25 mainLayout.addWidget(butt); |
26 |
26 |
27 QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam())); |
27 QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam())); |
28 } |
28 } |
29 |
29 |