QTfrontend/teamselhelper.cpp
changeset 86 664b536a1c27
parent 84 0f6669da2fcb
child 116 00d3d6d2e699
equal deleted inserted replaced
85:44d9045b26ff 86:664b536a1c27
     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