QTfrontend/teamselhelper.cpp
changeset 133 c79cb5e5b24a
parent 132 2d0f404cdf05
child 134 3d87d8e58020
equal deleted inserted replaced
132:2d0f404cdf05 133:c79cb5e5b24a
    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   this->setMaximumHeight(40);
    18   this->setMaximumHeight(45);
    19   QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
    19   QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
    20 
    20 
    21   QPushButton* butt=new QPushButton(*px, "", this);
    21   QPushButton* butt=new QPushButton(*px, "", this);
    22   butt->setFlat(true);
    22   butt->setFlat(true);
    23   butt->setGeometry(0, 0, 30, 30);
    23   butt->setGeometry(0, 0, 30, 30);