some more layout tune
authordisplacer
Mon, 10 Dec 2007 23:16:46 +0000
changeset 644 45454744f240
parent 643 281af1f040fb
child 645 c71fe8b942ee
some more layout tune
QTfrontend/selectWeapon.cpp
--- a/QTfrontend/selectWeapon.cpp	Mon Dec 10 23:09:43 2007 +0000
+++ b/QTfrontend/selectWeapon.cpp	Mon Dec 10 23:16:46 2007 +0000
@@ -35,6 +35,8 @@
   QWidget(parent)
 {
   QHBoxLayout* hbLayout = new QHBoxLayout(this);
+  hbLayout->setSpacing(1);
+  hbLayout->setMargin(1);
   
   QLabel* lbl = new QLabel(this);
   lbl->setPixmap(QPixmap::fromImage(getAmmoImage(num)));
@@ -48,14 +50,16 @@
 
   hbLayout->setStretchFactor(lbl, 1);
   hbLayout->setStretchFactor(item, 99);
-  hbLayout->setAlignment(lbl, Qt::AlignLeft | Qt::AlignTop);
-  hbLayout->setAlignment(item, Qt::AlignTop);
+  hbLayout->setAlignment(lbl, Qt::AlignLeft | Qt::AlignVCenter);
+  hbLayout->setAlignment(item, Qt::AlignLeft | Qt::AlignVCenter);
 }
 
 SelWeaponWidget::SelWeaponWidget(QWidget* parent) :
 QWidget(parent)
 {
   pLayout=new QGridLayout(this);
+  pLayout->setSpacing(1);
+  pLayout->setMargin(1);
 
   int j=-1;
   for(int i=0; i<19; ++i) {