Plugins/PluginWizardQColorDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3345
071afe8be2a1
child 3523
8df1ab89e261
diff -r 96232974dcdb -r 645c12de6b0c Plugins/PluginWizardQColorDialog.py
--- a/Plugins/PluginWizardQColorDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Plugins/PluginWizardQColorDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -21,7 +21,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "5.4.0"
+version = "5.5.0"
 className = "ColorDialogWizard"
 packageName = "__core__"
 shortDescription = "Show the QColorDialog wizard."
@@ -70,17 +70,17 @@
         Private method to initialize the action.
         """
         self.action = E5Action(
-            self.trUtf8('QColorDialog Wizard'),
-            self.trUtf8('Q&ColorDialog Wizard...'), 0, 0, self,
+            self.tr('QColorDialog Wizard'),
+            self.tr('Q&ColorDialog Wizard...'), 0, 0, self,
             'wizards_qcolordialog')
-        self.action.setStatusTip(self.trUtf8('QColorDialog Wizard'))
-        self.action.setWhatsThis(self.trUtf8(
+        self.action.setStatusTip(self.tr('QColorDialog Wizard'))
+        self.action.setWhatsThis(self.tr(
             """<b>QColorDialog Wizard</b>"""
             """<p>This wizard opens a dialog for entering all the parameters"""
             """ needed to create a QColorDialog. The generated code is"""
             """ inserted at the current cursor position.</p>"""
         ))
-        self.action.triggered[()].connect(self.__handle)
+        self.action.triggered.connect(self.__handle)
         
         self.__ui.addE5Actions([self.action], 'wizards')
 
@@ -122,8 +122,8 @@
         if editor is None:
             E5MessageBox.critical(
                 self.__ui,
-                self.trUtf8('No current editor'),
-                self.trUtf8('Please open or create a file first.'))
+                self.tr('No current editor'),
+                self.tr('Please open or create a file first.'))
         else:
             code, ok = self.__callForm(editor)
             if ok:

eric ide

mercurial