Author: mir3x
Date: Tue Mar  3 19:08:04 2015
New Revision: 28386

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

See bug #23032


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=28386&r1=28385&r2=28386&view=diff
==============================================================================
--- trunk/client/gui-qt/citydlg.cpp     (original)
+++ trunk/client/gui-qt/citydlg.cpp     Tue Mar  3 19:08:04 2015
@@ -2681,7 +2681,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) {
@@ -2826,7 +2827,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