Author: mir3x
Date: Sun Nov  6 22:19:11 2016
New Revision: 34421

URL: http://svn.gna.org/viewcvs/freeciv?rev=34421&view=rev
Log:
Qt client - squeezed units/improvemnts layout a bit in city dialog

See patch patch #7941

Modified:
    trunk/client/gui-qt/citydlg.cpp
    trunk/data/themes/gui-qt/NightStalker/resource.qss

Modified: trunk/client/gui-qt/citydlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/citydlg.cpp?rev=34421&r1=34420&r2=34421&view=diff
==============================================================================
--- trunk/client/gui-qt/citydlg.cpp     (original)
+++ trunk/client/gui-qt/citydlg.cpp     Sun Nov  6 22:19:11 2016
@@ -1488,18 +1488,26 @@
   /* Layout for units/buildings */
   v_layout = new QHBoxLayout;
   v_layout->addWidget(scroll3);
+  v_layout->setContentsMargins(0 , 0 , 0, 0);
+  v_layout->setSpacing(0);
   curr_impr->setLayout(v_layout);
   curr_impr->setTitle(_("Improvements"));
   v_layout = new QHBoxLayout;
   v_layout->addWidget(scroll2);
+  v_layout->setContentsMargins(0 , 0 , 0, 0);
+  v_layout->setSpacing(0);
   curr_units->setLayout(v_layout);
   v_layout = new QHBoxLayout;
   v_layout->addWidget(scroll);
+  v_layout->setContentsMargins(0 , 0 , 0, 0);
+  v_layout->setSpacing(0);
   supp_units->setLayout(v_layout);
 
   units_layout->addWidget(curr_units);
   units_layout->addWidget(supp_units);
   units_layout->addWidget(curr_impr);
+  units_layout->setSpacing(0);
+  units_layout->setContentsMargins(0 , 0 , 0, 0);
 
   vbox = new QVBoxLayout;
   vbox_layout = new QVBoxLayout;

Modified: trunk/data/themes/gui-qt/NightStalker/resource.qss
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/NightStalker/resource.qss?rev=34421&r1=34420&r2=34421&view=diff
==============================================================================
--- trunk/data/themes/gui-qt/NightStalker/resource.qss  (original)
+++ trunk/data/themes/gui-qt/NightStalker/resource.qss  Sun Nov  6 22:19:11 2016
@@ -38,7 +38,7 @@
   background-color: #414a57;
   border: none;
   border-radius: none;
-  margin-top: 2ex;
+  margin-top: 2.5ex;
 }
 
 *[themed_border="true"] {


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

Reply via email to