Author: cazfi
Date: Wed Jan  6 20:01:57 2016
New Revision: 31388

URL: http://svn.gna.org/viewcvs/freeciv?rev=31388&view=rev
Log:
Show number of goods types in the ruleset statistics.

See patch #6778

Modified:
    trunk/tools/ruledit/tab_misc.cpp

Modified: trunk/tools/ruledit/tab_misc.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/tab_misc.cpp?rev=31388&r1=31387&r2=31388&view=diff
==============================================================================
--- trunk/tools/ruledit/tab_misc.cpp    (original)
+++ trunk/tools/ruledit/tab_misc.cpp    Wed Jan  6 20:01:57 2016
@@ -143,6 +143,10 @@
   stats->setItem(2, 6, item);
   item = new QTableWidgetItem("-");
   stats->setItem(2, 7, item);
+  item = new QTableWidgetItem(QString::fromUtf8(RQ_("?stat:Goods")));
+  stats->setItem(3, 6, item);
+  item = new QTableWidgetItem("-");
+  stats->setItem(3, 7, item);
   stats->verticalHeader()->setVisible(false);
   stats->horizontalHeader()->setVisible(false);
   stats->setEditTriggers(QAbstractItemView::NoEditTriggers);
@@ -257,6 +261,7 @@
   stats->item(row++, 
7)->setText(QString::number(game.control.num_extra_types));
   stats->item(row++, 7)->setText(QString::number(game.control.num_base_types));
   stats->item(row++, 7)->setText(QString::number(game.control.num_road_types));
+  stats->item(row++, 
7)->setText(QString::number(game.control.num_goods_types));
 
   stats->resizeColumnsToContents();
 }


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

Reply via email to