QTfrontend/teamselhelper.cpp
changeset 229 91043d0c2247
parent 225 8907889e3101
child 231 c77b16e48273
equal deleted inserted replaced
228:7298aaee99b4 229:91043d0c2247
    19 #include "teamselhelper.h"
    19 #include "teamselhelper.h"
    20 #include "hwconsts.h"
    20 #include "hwconsts.h"
    21 
    21 
    22 #include <QPixmap>
    22 #include <QPixmap>
    23 #include <QPainter>
    23 #include <QPainter>
       
    24 #include <QStyleFactory>
    24 
    25 
    25 #include "frameTeam.h"
    26 #include "frameTeam.h"
    26 
    27 
    27 void TeamLabel::teamButtonClicked()
    28 void TeamLabel::teamButtonClicked()
    28 {
    29 {
    94     pOurFrameTeams->currentColor=pOurFrameTeams->availableColors.begin();
    95     pOurFrameTeams->currentColor=pOurFrameTeams->availableColors.begin();
    95   }
    96   }
    96   
    97   
    97   QPalette newPalette = palette();
    98   QPalette newPalette = palette();
    98   newPalette.setColor(QPalette::Button, QColor(*pOurFrameTeams->currentColor));
    99   newPalette.setColor(QPalette::Button, QColor(*pOurFrameTeams->currentColor));
    99   colorButt->setStyleSheet(QString("background-color : ")+pOurFrameTeams->currentColor->name());
   100   //colorButt->setStyleSheet(QString("background-color : ")+pOurFrameTeams->currentColor->name());
   100   //colorButt->setPalette(newPalette);
   101   colorButt->setStyle(QStyleFactory::create("plastique"));
       
   102   colorButt->setPalette(newPalette);
   101 }
   103 }