QTfrontend/teamselhelper.cpp
changeset 134 3d87d8e58020
parent 133 c79cb5e5b24a
child 135 53faa20669de
equal deleted inserted replaced
133:c79cb5e5b24a 134:3d87d8e58020
    13 }
    13 }
    14 
    14 
    15 TeamShowWidget::TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent) :
    15 TeamShowWidget::TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent) :
    16   QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying)
    16   QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying)
    17 {
    17 {
       
    18   mainLayout.setSpacing(1);
    18   this->setMaximumHeight(45);
    19   this->setMaximumHeight(45);
    19   QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
    20   QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
    20 
    21 
    21   QPushButton* butt=new QPushButton(*px, "", this);
    22   QPushButton* butt=new QPushButton(*px, "", this);
    22   butt->setFlat(true);
    23   butt->setFlat(true);