QTfrontend/mapContainer.cpp
changeset 452 45fbb9df0c99
parent 331 6bfc326e4976
child 486 7ea71cd3acd5
--- a/QTfrontend/mapContainer.cpp	Sun Feb 18 14:43:35 2007 +0000
+++ b/QTfrontend/mapContainer.cpp	Sun Feb 18 15:28:47 2007 +0000
@@ -35,7 +35,7 @@
   imageButt=new QPushButton(this);
   imageButt->setFixedSize(256, 128);
   imageButt->setFlat(true);
-  imageButt->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
+  imageButt->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);//QSizePolicy::Minimum, QSizePolicy::Minimum);
   mainLayout.addWidget(imageButt);
   connect(imageButt, SIGNAL(clicked()), this, SLOT(setRandomSeed()));
   setRandomSeed();
@@ -51,6 +51,7 @@
   connect(chooseMap, SIGNAL(activated(int)), this, SLOT(mapChanged(int)));
 
   mainLayout.addWidget(chooseMap);
+  mainLayout.setSizeConstraint(QLayout::SetFixedSize);//SetMinimumSize
 }
 
 void HWMapContainer::setImage(const QImage newImage)