Preferences/ConfigurationPages/InterfacePage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Preferences/ConfigurationPages/InterfacePage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/InterfacePage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -23,6 +23,7 @@
 
 import Preferences
 import Utilities
+import UI.PixmapCache
 
 from eric5config import getConfig
 
@@ -39,6 +40,8 @@
         self.setupUi(self)
         self.setObjectName("InterfacePage")
         
+        self.styleSheetButton.setIcon(UI.PixmapCache.getIcon("open.png"))
+        
         self.styleSheetCompleter = E5FileCompleter(self.styleSheetEdit)
         
         # set initial values
@@ -207,7 +210,7 @@
         """
         curStyle = Preferences.getUI("Style")
         styles = sorted(list(QStyleFactory.keys()))
-        self.styleComboBox.addItem(self.trUtf8('System'), "System")
+        self.styleComboBox.addItem(self.tr('System'), "System")
         for style in styles:
             self.styleComboBox.addItem(style, style)
         currentIndex = self.styleComboBox.findData(curStyle)
@@ -250,7 +253,7 @@
         self.languageComboBox.clear()
         
         self.languageComboBox.addItem("English (default)", "None")
-        self.languageComboBox.addItem(self.trUtf8('System'), "System")
+        self.languageComboBox.addItem(self.tr('System'), "System")
         for locale in localeList:
             self.languageComboBox.addItem(locales[locale], locale)
         self.languageComboBox.setCurrentIndex(currentIndex)
@@ -262,9 +265,9 @@
         """
         file = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select style sheet file"),
+            self.tr("Select style sheet file"),
             self.styleSheetEdit.text(),
-            self.trUtf8(
+            self.tr(
                 "Qt Style Sheets (*.qss);;Cascading Style Sheets (*.css);;"
                 "All files (*)"))
         

eric ide

mercurial