Helpviewer/OpenSearch/OpenSearchEngineModel.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Helpviewer/OpenSearch/OpenSearchEngineModel.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Helpviewer/OpenSearch/OpenSearchEngineModel.py	Thu Apr 03 23:05:31 2014 +0200
@@ -33,8 +33,8 @@
         manager.changed.connect(self.__enginesChanged)
         
         self.__headers = [
-            self.trUtf8("Name"),
-            self.trUtf8("Keywords"),
+            self.tr("Name"),
+            self.tr("Keywords"),
         ]
     
     def removeRows(self, row, count, parent=QModelIndex()):
@@ -132,11 +132,11 @@
                 return icon
                 
             elif role == Qt.ToolTipRole:
-                description = self.trUtf8("<strong>Description:</strong> {0}")\
+                description = self.tr("<strong>Description:</strong> {0}")\
                     .format(engine.description())
                 if engine.providesSuggestions():
                     description += "<br/>"
-                    description += self.trUtf8(
+                    description += self.tr(
                         "<strong>Provides contextual suggestions</strong>")
                 
                 return description
@@ -144,7 +144,7 @@
             if role in [Qt.EditRole, Qt.DisplayRole]:
                 return ",".join(self.__manager.keywordsForEngine(engine))
             elif role == Qt.ToolTipRole:
-                return self.trUtf8(
+                return self.tr(
                     "Comma-separated list of keywords that may"
                     " be entered in the location bar followed by search terms"
                     " to search with this engine")

eric ide

mercurial