QTfrontend/frameTeam.cpp
changeset 207 287077789132
parent 184 f97a7a3dc8f6
child 341 184230eb4151
equal deleted inserted replaced
206:32fa6282efe2 207:287077789132
    26 
    26 
    27 FrameTeams::FrameTeams(QWidget* parent) :
    27 FrameTeams::FrameTeams(QWidget* parent) :
    28   QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this)
    28   QWidget(parent), maxHedgehogsPerGame(18), overallHedgehogs(0), mainLayout(this)
    29 {
    29 {
    30   mainLayout.setSpacing(1);
    30   mainLayout.setSpacing(1);
       
    31 
       
    32   availableColors.push_back(QColor(0, 0, 255));
       
    33   availableColors.push_back(QColor(0, 255, 0));
       
    34   availableColors.push_back(QColor(0, 255, 255));
       
    35   availableColors.push_back(QColor(255, 0, 0));
       
    36   availableColors.push_back(QColor(255, 0, 255));
       
    37   availableColors.push_back(QColor(255, 255, 0));
       
    38 
       
    39   resetColors();
       
    40 }
       
    41 
       
    42 void FrameTeams::resetColors()
       
    43 {
       
    44   currentColor=availableColors.begin();
    31 }
    45 }
    32 
    46 
    33 void FrameTeams::addTeam(HWTeam team, bool willPlay)
    47 void FrameTeams::addTeam(HWTeam team, bool willPlay)
    34 {
    48 {
    35   TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, this);
    49   TeamShowWidget* pTeamShowWidget =new TeamShowWidget(team, willPlay, this);