From 4fdc15ef7f11956e4f0bf34fce60f8aa0252eace Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Mon, 22 Aug 2011 14:32:27 -0300 Subject: Fix QColor __reduce__ function. Fixes bug #983. Reviewer: Luciano Wolf Lauro Neto --- PySide/QtGui/typesystem_gui_common.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'PySide') diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index c178d1844..626c249bc 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -1145,7 +1145,9 @@ } #endif default: - %PYARG_0 = 0; + { + %PYARG_0 = PyString_FromString("PySide.QtGui.QColor()"); + } } @@ -1203,7 +1205,9 @@ } #endif default: - %PYARG_0 = 0; + { + %PYARG_0 = Py_BuildValue("(N(O))", PyObject_Type(%PYSELF), Py_None); + } } @@ -1240,8 +1244,10 @@ break; } default: + { %PYARG_0 = 0; } + } -- cgit v1.2.3