QTfrontend/teamselhelper.cpp
changeset 1426 b80048899fa7
parent 1424 2b45d88716b0
child 1440 6439fa9af904
equal deleted inserted replaced
1425:7ee750565e2d 1426:b80048899fa7
    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(30);
       
    46 	this->setMinimumHeight(30);
    46 	QIcon difficultyIcon=team.isNetTeam() ?
    47 	QIcon difficultyIcon=team.isNetTeam() ?
    47 		QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
    48 		QIcon(QString(":/res/botlevels/net%1.png").arg(m_team.difficulty))
    48 		: QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    49 		: QIcon(QString(":/res/botlevels/%1.png").arg(m_team.difficulty));
    49 
    50 
    50 	butt = new QPushButton(difficultyIcon, team.TeamName, this);
    51 	butt = new QPushButton(difficultyIcon, team.TeamName, this);
    71 		mainLayout.addWidget(colorButt);
    72 		mainLayout.addWidget(colorButt);
    72 
    73 
    73 		phhoger = new CHedgehogerWidget(QImage(":/res/hh25x25.png"), this);
    74 		phhoger = new CHedgehogerWidget(QImage(":/res/hh25x25.png"), this);
    74 		connect(phhoger, SIGNAL(hedgehogsNumChanged()), this, SLOT(hhNumChanged()));
    75 		connect(phhoger, SIGNAL(hedgehogsNumChanged()), this, SLOT(hhNumChanged()));
    75 		mainLayout.addWidget(phhoger);
    76 		mainLayout.addWidget(phhoger);
       
    77 	} else {
    76 	}
    78 	}
    77 
    79 
    78 	QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam()));
    80 	QObject::connect(butt, SIGNAL(clicked()), this, SLOT(activateTeam()));
    79 	//QObject::connect(bText, SIGNAL(clicked()), this, SLOT(activateTeam()));
    81 	//QObject::connect(bText, SIGNAL(clicked()), this, SLOT(activateTeam()));
    80 }
    82 }