QTfrontend/ui/widget/teamselhelper.cpp
changeset 7258 722e8a0d89dc
parent 7145 1d1a14b39400
child 8382 67e257b98422
equal deleted inserted replaced
7256:5b97b9946cde 7258:722e8a0d89dc
    26 
    26 
    27 #include "teamselhelper.h"
    27 #include "teamselhelper.h"
    28 #include "hwconsts.h"
    28 #include "hwconsts.h"
    29 #include "frameTeam.h"
    29 #include "frameTeam.h"
    30 #include "colorwidget.h"
    30 #include "colorwidget.h"
       
    31 #include "DataManager.h"
    31 
    32 
    32 void TeamLabel::teamButtonClicked()
    33 void TeamLabel::teamButtonClicked()
    33 {
    34 {
    34     emit teamActivated(text());
    35     emit teamActivated(text());
    35 }
    36 }
    67                         "}");
    68                         "}");
    68 
    69 
    69     if(m_isPlaying)
    70     if(m_isPlaying)
    70     {
    71     {
    71         // team color
    72         // team color
    72         colorWidget = new ColorWidget(colorsModel, this);
    73         colorWidget = new ColorWidget(DataManager::instance().colorsModel(), this);
    73         colorWidget->setMinimumWidth(26);
    74         colorWidget->setMinimumWidth(26);
    74         colorWidget->setMaximumWidth(26);
    75         colorWidget->setMaximumWidth(26);
    75         colorWidget->setMinimumHeight(26);
    76         colorWidget->setMinimumHeight(26);
    76         colorWidget->setMaximumHeight(26);
    77         colorWidget->setMaximumHeight(26);
    77         colorWidget->setColor(team.color());
    78         colorWidget->setColor(team.color());