Author: mir3x
Date: Sun Nov 13 22:35:53 2016
New Revision: 34502

URL: http://svn.gna.org/viewcvs/freeciv?rev=34502&view=rev
Log:
Qt client - city dialog - use fixed height for widget holding city view

See patch #7981


Modified:
    trunk/client/gui-qt/citydlg.cpp

Modified: trunk/client/gui-qt/citydlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/citydlg.cpp?rev=34502&r1=34501&r2=34502&view=diff
==============================================================================
--- trunk/client/gui-qt/citydlg.cpp     (original)
+++ trunk/client/gui-qt/citydlg.cpp     Sun Nov 13 22:35:53 2016
@@ -1745,12 +1745,16 @@
   leftbot_layout->addWidget(prod_unit_splitter);
   top_widget = new QWidget;
   top_widget->setLayout(lefttop_layout);
+  top_widget->setSizePolicy(QSizePolicy::MinimumExpanding,
+                            QSizePolicy::Fixed);
   scroll_info = new QScrollArea();
   scroll_unit = new QScrollArea();
   scroll_info->setWidget(top_widget);
   scroll_info->setWidgetResizable(true);
   prod_happ_widget = new QWidget;
   prod_happ_widget->setLayout(leftbot_layout);
+  prod_happ_widget->setSizePolicy(QSizePolicy::MinimumExpanding,
+                                  QSizePolicy::MinimumExpanding);
   scroll_unit->setWidget(prod_happ_widget);
   scroll_unit->setWidgetResizable(true);
   central_left_splitter->addWidget(scroll_info);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to