margin reduced (space between commands in teamselect widget)
authordisplacer
Sun, 03 Sep 2006 14:34:08 +0000
changeset 135 53faa20669de
parent 134 3d87d8e58020
child 136 89970b70b076
margin reduced (space between commands in teamselect widget)
QTfrontend/teamselhelper.cpp
--- a/QTfrontend/teamselhelper.cpp	Sun Sep 03 14:15:41 2006 +0000
+++ b/QTfrontend/teamselhelper.cpp	Sun Sep 03 14:34:08 2006 +0000
@@ -16,19 +16,22 @@
   QWidget(parent), mainLayout(this), m_team(team), m_isPlaying(isPlaying)
 {
   mainLayout.setSpacing(1);
-  this->setMaximumHeight(45);
+  mainLayout.setMargin(2);
+  this->setMaximumHeight(35);
   QPixmap* px=new QPixmap(QPixmap(datadir->absolutePath() + "/Forts/" + m_team.Fort + "L.png").scaled(40, 40));
 
+  QPalette newPalette = palette();
+  newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
+
   QPushButton* butt=new QPushButton(*px, "", this);
   butt->setFlat(true);
   butt->setGeometry(0, 0, 30, 30);
   butt->setMaximumWidth(30);
+  butt->setPalette(newPalette);
   mainLayout.addWidget(butt);
   butt->setIconSize(butt->size());
 
   QPushButton* bText=new QPushButton(team.TeamName, this);
-  QPalette newPalette = palette();
-  newPalette.setColor(QPalette::Button, palette().color(backgroundRole()));
   bText->setPalette(newPalette);
   bText->setFlat(true);
   mainLayout.addWidget(bText);