QTfrontend/teamselhelper.cpp
changeset 340 f5d4db927eba
parent 234 4040a1cbb0ee
child 341 184230eb4151
equal deleted inserted replaced
339:7535ab6c3820 340:f5d4db927eba
    34   QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying), phhoger(0), colorButt(0)
    34   QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying), phhoger(0), colorButt(0)
    35 {
    35 {
    36   mainLayout.setSpacing(1);
    36   mainLayout.setSpacing(1);
    37   mainLayout.setMargin(2);
    37   mainLayout.setMargin(2);
    38   this->setMaximumHeight(35);
    38   this->setMaximumHeight(35);
    39   QIcon difficultyIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    39   QIcon difficultyIcon=team.netTeam ? QIcon(QString(":/res/net.png"))
       
    40     : QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    40 
    41 
    41   QPalette newPalette = palette();
    42   QPalette newPalette = palette();
    42   newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
    43   newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
    43 
    44 
    44   // team fort
    45   // team fort