Preferences/ConfigurationPages/HelpInterfacePage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3145
a9de05d4a22f
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
diff -r 96232974dcdb -r 645c12de6b0c Preferences/ConfigurationPages/HelpInterfacePage.py
--- a/Preferences/ConfigurationPages/HelpInterfacePage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/HelpInterfacePage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -17,6 +17,7 @@
 
 import Preferences
 import Utilities
+import UI.PixmapCache
 
 
 class HelpInterfacePage(ConfigurationPageBase, Ui_HelpInterfacePage):
@@ -32,6 +33,8 @@
         self.setupUi(self)
         self.setObjectName("InterfacePage")
         
+        self.styleSheetButton.setIcon(UI.PixmapCache.getIcon("open.png"))
+        
         self.styleSheetCompleter = E5FileCompleter(self.styleSheetEdit)
         
         # set initial values
@@ -56,7 +59,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)
@@ -71,9 +74,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