Author: mir3x
Date: Tue Aug  2 17:22:14 2016
New Revision: 33425

URL: http://svn.gna.org/viewcvs/freeciv?rev=33425&view=rev
Log:
Qt client - Added icons to pregame page, to distinct humans or ai.

See patch #7525



Added:
    trunk/data/themes/gui-qt/icons/ai.png   (with props)
    trunk/data/themes/gui-qt/icons/human.png   (with props)
Modified:
    trunk/client/gui-qt/pages.cpp
    trunk/data/themes/gui-qt/icons/Makefile.am

Modified: trunk/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/pages.cpp?rev=33425&r1=33424&r2=33425&view=diff
==============================================================================
--- trunk/client/gui-qt/pages.cpp       (original)
+++ trunk/client/gui-qt/pages.cpp       Tue Aug  2 17:22:14 2016
@@ -1541,6 +1541,9 @@
           if (is_ai(pplayer)) {
             str = str + " <" + 
(ai_level_translated_name(pplayer->ai_common.skill_level))
               + ">";
+            item->setIcon(col, fc_icons::instance()->get_icon("ai"));
+          } else {
+            item->setIcon(col, fc_icons::instance()->get_icon("human"));
           }
 
           item->setText(col, str);

Modified: trunk/data/themes/gui-qt/icons/Makefile.am
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/icons/Makefile.am?rev=33425&r1=33424&r2=33425&view=diff
==============================================================================
--- trunk/data/themes/gui-qt/icons/Makefile.am  (original)
+++ trunk/data/themes/gui-qt/icons/Makefile.am  Tue Aug  2 17:22:14 2016
@@ -4,10 +4,12 @@
 pkgdatadir = $(datadir)/$(PACKAGE)/themes/gui-qt/icons
 
 pkgdata_DATA =                 \
+       ai.png                  \
        flag.png                \
        go-down.png             \
        go-up.png               \
        help-donate.png         \
+       human.png               \
        list-add.png            \
        meeting-observer.png    \
        preferences-other.png

Added: trunk/data/themes/gui-qt/icons/ai.png
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/icons/ai.png?rev=33425&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/data/themes/gui-qt/icons/ai.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: trunk/data/themes/gui-qt/icons/human.png
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/icons/human.png?rev=33425&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/data/themes/gui-qt/icons/human.png
------------------------------------------------------------------------------
    svn:mime-type = image/png


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

Reply via email to