[QGIS Commit] r10335 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 20 13:33:36 EDT 2009


Author: jef
Date: 2009-03-20 13:33:36 -0400 (Fri, 20 Mar 2009)
New Revision: 10335

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
fix layout of layer selection in grass toolbox

Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-03-20 17:28:51 UTC (rev 10334)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-03-20 17:33:36 UTC (rev 10335)
@@ -2628,7 +2628,11 @@
     }
   }
 
-  mLayerComboBox = new QComboBox( this );
+  QHBoxLayout *l = new QHBoxLayout( this );
+  mLayerComboBox = new QComboBox();
+  mLayerComboBox->setSizePolicy( QSizePolicy::Expanding,
+                                 QSizePolicy:: Preferred );
+  l->addWidget( mLayerComboBox );
 
   // Of course, activated(int) is not enough, but there is no signal
   // BEFORE the cobo is opened



More information about the QGIS-commit mailing list