Fixed a porting related bug in CreateDialogCodeDialog.py.

Sat, 27 Feb 2010 11:33:46 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 27 Feb 2010 11:33:46 +0000
changeset 124
bd1d5ac481b0
parent 123
5f8c8cd86111
child 125
064cfadcf15c

Fixed a porting related bug in CreateDialogCodeDialog.py.

Project/CreateDialogCodeDialog.py file | annotate | diff | comparison | revisions
--- a/Project/CreateDialogCodeDialog.py	Fri Feb 26 17:51:16 2010 +0000
+++ b/Project/CreateDialogCodeDialog.py	Sat Feb 27 11:33:46 2010 +0000
@@ -218,9 +218,9 @@
                         if self.__module is not None:
                             method = "on_%s_%s" % \
                                 (name, metaMethod.signature().split("(")[0])
-                            method2 = "on_%s_%s" % \
-                                (name, bytes(QMetaObject.normalizedSignature(
-                                    metaMethod.signature())).decode())
+                            method2 = "%s(%s)" % (method, 
+                                ", ".join([self.__mapType(t) 
+                                           for t in metaMethod.parameterTypes()]))
                             
                             if method2 in signatureList or method in signatureList:
                                 itm2.setFlags(Qt.ItemFlags(Qt.ItemIsEnabled))

eric ide

mercurial