Author: mir3x
Date: Sun Nov  6 22:15:00 2016
New Revision: 34416

URL: http://svn.gna.org/viewcvs/freeciv?rev=34416&view=rev
Log:
Qt client - added configuration comment font and help text on first run

See patch #7936

Modified:
    branches/S2_6/client/gui-qt/fonts.cpp

Modified: branches/S2_6/client/gui-qt/fonts.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/fonts.cpp?rev=34416&r1=34415&r2=34416&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/fonts.cpp       (original)
+++ branches/S2_6/client/gui-qt/fonts.cpp       Sun Nov  6 22:15:00 2016
@@ -156,15 +156,26 @@
     fc_strlcpy(gui_options.gui_qt_font_city_names,
                font_name.toLocal8Bit().data(), 512);
   }
-  sl.clear();
-
-  /* notify */
+  /* default for help text */
+  font_name = configure_font(fonts::help_text, sl, default_size);
+  if (font_name.isEmpty() == false) {
+    fc_strlcpy(gui_options.gui_qt_font_help_text,
+               font_name.toLocal8Bit().data(), 512);
+  }
+  sl.clear();
+
+  /* notify and comment */
   sl  <<  "Cousine" << "Liberation Mono" << "Source Code Pro"
       << "Source Code Pro [ADBO]"
       << "Noto Mono" << "Ubuntu Mono" << "Courier New";
   font_name = configure_font(fonts::notify_label, sl, default_size);
   if (font_name.isEmpty() == false) {
     fc_strlcpy(gui_options.gui_qt_font_notify_label,
+               font_name.toLocal8Bit().data(), 512);
+  }
+  font_name = configure_font(fonts::comment_label, sl, default_size);
+  if (font_name.isEmpty() == false) {
+    fc_strlcpy(gui_options.gui_qt_font_comment_label,
                font_name.toLocal8Bit().data(), 512);
   }
 


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

Reply via email to