[qet] [2781] Add icon system to language switch

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2781
Author:   scorpio810
Date:     2014-01-27 04:20:20 +0100 (Mon, 27 Jan 2014)
Log Message:
-----------
Add icon system to language switch

Modified Paths:
--------------
    trunk/qelectrotech.qrc
    trunk/sources/configpages.cpp
    trunk/sources/qeticons.cpp
    trunk/sources/qeticons.h

Added Paths:
-----------
    trunk/ico/22x22/applications-development-translation.png

Added: trunk/ico/22x22/applications-development-translation.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/22x22/applications-development-translation.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc	2014-01-27 03:00:37 UTC (rev 2780)
+++ trunk/qelectrotech.qrc	2014-01-27 03:20:20 UTC (rev 2781)
@@ -224,5 +224,6 @@
         <file>ico/24x16/sl.png</file>
         <file>ico/24x16/gr.png</file>
         <file>ico/24x16/it.png</file>
+        <file>ico/22x22/applications-development-translation.png</file>
     </qresource>
 </RCC>

Modified: trunk/sources/configpages.cpp
===================================================================
--- trunk/sources/configpages.cpp	2014-01-27 03:00:37 UTC (rev 2780)
+++ trunk/sources/configpages.cpp	2014-01-27 03:20:20 UTC (rev 2781)
@@ -227,7 +227,7 @@
  * fill all available lang in @lang_combo_box
  */
 void GeneralConfigurationPage::fillLang(QSettings &settings) {
-	lang_combo_box->addItem(tr("Syst\350me"), "system");
+	lang_combo_box->addItem(QET::Icons::translation,  tr("Syst\350me"), "system");
 	lang_combo_box->insertSeparator(1);
 
 	// all lang available on lang directory

Modified: trunk/sources/qeticons.cpp
===================================================================
--- trunk/sources/qeticons.cpp	2014-01-27 03:00:37 UTC (rev 2780)
+++ trunk/sources/qeticons.cpp	2014-01-27 03:20:20 UTC (rev 2781)
@@ -169,6 +169,7 @@
 		QIcon ro;
 		QIcon ru;
 		QIcon sl;
+		QIcon translation;
 	}
 }
 
@@ -418,4 +419,5 @@
 	ro                  .addFile(":/ico/24x16/ro.png");
 	ru                  .addFile(":/ico/24x16/ru.png");
 	sl                  .addFile(":/ico/24x16/sl.png");
+	translation          .addFile(":/ico/22x22/applications-development-translation.png");
 }

Modified: trunk/sources/qeticons.h
===================================================================
--- trunk/sources/qeticons.h	2014-01-27 03:00:37 UTC (rev 2780)
+++ trunk/sources/qeticons.h	2014-01-27 03:20:20 UTC (rev 2781)
@@ -178,6 +178,7 @@
 		extern QIcon ro;
 		extern QIcon ru;
 		extern QIcon sl;
+		extern QIcon translation;
 	}
 }
 #endif


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/