QTfrontend/teamselhelper.cpp
changeset 483 2c8d6072c261
parent 385 9201c85f7ff4
child 486 7ea71cd3acd5
equal deleted inserted replaced
482:61c617f1bec7 483:2c8d6072c261
    35   colorButt(0)
    35   colorButt(0)
    36 {
    36 {
    37   mainLayout.setSpacing(1);
    37   mainLayout.setSpacing(1);
    38   mainLayout.setMargin(2);
    38   mainLayout.setMargin(2);
    39   this->setMaximumHeight(35);
    39   this->setMaximumHeight(35);
    40   QIcon difficultyIcon=team.isNetTeam() ? QIcon(QString(":/res/net.png"))
    40   QIcon difficultyIcon=team.isNetTeam() ? 
       
    41     QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
    41     : QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    42     : QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    42 
    43 
    43   QPalette newPalette = palette();
    44   QPalette newPalette = palette();
    44   newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
    45   newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
    45 
    46