Author: mir3x
Date: Tue Mar  3 19:07:46 2015
New Revision: 28384

URL: http://svn.gna.org/viewcvs/freeciv?rev=28384&view=rev
Log:
Removed scrollbars from city dialog production on windows in qt-client.

See bug #23032


Modified:
    branches/S2_5/client/gui-qt/citydlg.cpp

Modified: branches/S2_5/client/gui-qt/citydlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/citydlg.cpp?rev=28384&r1=28383&r2=28384&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/citydlg.cpp     (original)
+++ branches/S2_5/client/gui-qt/citydlg.cpp     Tue Mar  3 19:07:46 2015
@@ -2676,7 +2676,8 @@
   rect1.setWidth(pix_scaled.width() + 4);
   rect2 = option.rect;
   rect2.setLeft(option.rect.left() + rect1.width());
-  rect2.setTop(rect2.top() + 4);
+  rect2.setTop(rect2.top() + (rect2.height()
+               - painter->fontMetrics().height()) / 2 );
   QItemDelegate::drawDisplay(painter, opt, rect2, name);
   if (is_unit) {
     if (is_sea) {
@@ -2821,7 +2822,7 @@
 
   QFont f = QApplication::font();
   QFontMetrics fm(f);
-  sh.setY(fm.height() + 8);
+  sh.setY(fm.height() * 2);
   sh.setX(0);
 
   qDeleteAll(city_target_list);


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

Reply via email to