more pretty color choose
authordisplacer
Mon, 06 Nov 2006 22:51:09 +0000
changeset 229 91043d0c2247
parent 228 7298aaee99b4
child 230 ff76ba0671f7
more pretty color choose
QTfrontend/teamselhelper.cpp
--- a/QTfrontend/teamselhelper.cpp	Wed Nov 01 20:26:45 2006 +0000
+++ b/QTfrontend/teamselhelper.cpp	Mon Nov 06 22:51:09 2006 +0000
@@ -21,6 +21,7 @@
 
 #include <QPixmap>
 #include <QPainter>
+#include <QStyleFactory>
 
 #include "frameTeam.h"
 
@@ -96,6 +97,7 @@
   
   QPalette newPalette = palette();
   newPalette.setColor(QPalette::Button, QColor(*pOurFrameTeams->currentColor));
-  colorButt->setStyleSheet(QString("background-color : ")+pOurFrameTeams->currentColor->name());
-  //colorButt->setPalette(newPalette);
+  //colorButt->setStyleSheet(QString("background-color : ")+pOurFrameTeams->currentColor->name());
+  colorButt->setStyle(QStyleFactory::create("plastique"));
+  colorButt->setPalette(newPalette);
 }