QTfrontend/teamselhelper.cpp
changeset 117 d21a48200772
parent 116 00d3d6d2e699
child 118 fac200ee771c
equal deleted inserted replaced
116:00d3d6d2e699 117:d21a48200772
     6 void TeamLabel::teamButtonClicked()
     6 void TeamLabel::teamButtonClicked()
     7 {
     7 {
     8   emit teamActivated(text());
     8   emit teamActivated(text());
     9 }
     9 }
    10 
    10 
    11 TeamShowWidget::TeamShowWidget(tmprop team, QWidget * parent) :
    11 TeamShowWidget::TeamShowWidget(HWTeam team, QWidget * parent) :
    12   QWidget(parent), mainLayout(this), m_team(team)
    12   QWidget(parent), mainLayout(this), m_team(team)
    13 {
    13 {
    14   this->setMaximumHeight(40);
    14   this->setMaximumHeight(40);
    15   QLabel* pixlbl=new QLabel();
    15   QLabel* pixlbl=new QLabel();
    16   pixlbl->setPixmap(QPixmap("../share/hedgewars/Data/Graphics/thinking.png"));
    16   pixlbl->setPixmap(QPixmap("../share/hedgewars/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(30);
    24   butt->setMaximumWidth(30);