QTfrontend/teamselhelper.cpp
changeset 84 0f6669da2fcb
parent 80 3c3dc6a148ca
child 86 664b536a1c27
equal deleted inserted replaced
83:207c85fbef51 84:0f6669da2fcb
     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   QLabel* pixlbl=new QLabel();
    15   QLabel* pixlbl=new QLabel();
    15   pixlbl->setPixmap(QPixmap("./Data/Graphics/thinking.png"));
    16   pixlbl->setPixmap(QPixmap("./Data/Graphics/thinking.png"));
    16   mainLayout.addWidget(pixlbl);
    17   mainLayout.addWidget(pixlbl);
    17 
    18 
    18   TeamLabel* lbl=new TeamLabel(team.teamName);
    19   TeamLabel* lbl=new TeamLabel(team.teamName);
    19   mainLayout.addWidget(lbl);
    20   mainLayout.addWidget(lbl);
    20 
    21 
    21   QPushButton* butt=new QPushButton("o");
    22   QPushButton* butt=new QPushButton("o");
       
    23   butt->setGeometry(0, 0, 25, 25);
       
    24   butt->setMaximumWidth(25);
    22   mainLayout.addWidget(butt);
    25   mainLayout.addWidget(butt);
    23 
    26 
    24   QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam()));
    27   QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam()));
    25 }
    28 }
    26 
    29