File pykde4_fix_pykdeuic4.patch of Package kdebindings4

Index: python/pykde4/tools/pykdeuic4/pykdeuic4.py
===================================================================
--- python/pykde4/tools/pykdeuic4/pykdeuic4.py	(revisione 1209674)
+++ python/pykde4/tools/pykdeuic4/pykdeuic4.py	(copia locale)
@@ -39,7 +39,7 @@
     def __init__(self,string):
         original_i18n_string.__init__(self,string)
     def __str__(self):
-        return "kdecore.i18n(\"%s\")" % (qtproxies.escape(self.string),)
+        return "kdecore.i18n(%s)" % (qtproxies.as_string(self.string),)
 qtproxies.i18n_string = kde_i18n_string
 
 def kdeFilter():
@@ -71,7 +71,7 @@
     indenter.indentwidth = indent
     comp = compiler.UICompiler()
     comp.factory._cwFilters.append(kdeFilter())
-    winfo = comp.compileUi(uifile, output)
+    winfo = comp.compileUi(uifile, output, None)
 
     if exe:
         output.write("""
@@ -104,7 +104,7 @@
     app = kdeui.KApplication()
     mainWindow = MainWin(None, "main window")
     mainWindow.show()
-    app.connect (app, QtCore.SIGNAL ("lastWindowClosed ()"), app.quit)
+    app.lastWindowClosed.connect(app.quit)
     app.exec_ ()
 """)
openSUSE Build Service is sponsored by