QTfrontend/teamselhelper.cpp
changeset 1440 6439fa9af904
parent 1426 b80048899fa7
child 1475 bab5650fc894
equal deleted inserted replaced
1439:340c47ad5600 1440:6439fa9af904
    40 	setPalette(newPalette);
    40 	setPalette(newPalette);
    41 	setAutoFillBackground(true);
    41 	setAutoFillBackground(true);
    42 
    42 
    43 	mainLayout.setSpacing(3);
    43 	mainLayout.setSpacing(3);
    44 	mainLayout.setMargin(0);
    44 	mainLayout.setMargin(0);
    45 	this->setMaximumHeight(30);
    45 	this->setMaximumHeight(38);
    46 	this->setMinimumHeight(30);
    46 	this->setMinimumHeight(38);
    47 	QIcon difficultyIcon=team.isNetTeam() ?
    47 	QIcon difficultyIcon=team.isNetTeam() ?
    48 		QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
    48 		QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
    49 		: QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    49 		: QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    50 
    50 
    51 	butt = new QPushButton(difficultyIcon, team.TeamName, this);
    51 	butt = new QPushButton(difficultyIcon, team.TeamName, this);
    52 	butt->setFlat(true);
    52 	butt->setFlat(true);
    53 	mainLayout.addWidget(butt);
    53 	mainLayout.addWidget(butt);
    54 	butt->setStyleSheet("QPushButton{"
    54 	butt->setStyleSheet("QPushButton{"
    55 			"icon-size: 36px;"
    55 			"icon-size: 48px;"
    56 			"text-align: left;"
    56 			"text-align: left;"
    57 			"background-color: #0d0544;"
    57 			"background-color: #0d0544;"
    58 			"color: orange;"
    58 			"color: orange;"
    59 			"font: bold;"
    59 			"font: bold;"
    60 			"border-width: 2px;"
    60 			"border-width: 2px;"
    61 		"}");
    61 			"margin: 6px 0px 6px 0px;"
       
    62 			"}");
    62 
    63 
    63 	if(m_isPlaying) {
    64 	if(m_isPlaying) {
    64 		// team color
    65 		// team color
    65 		colorButt = new QPushButton(this);
    66 		colorButt = new QPushButton(this);
    66 		colorButt->setMaximumWidth(26);
    67 		colorButt->setMaximumWidth(26);