diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-08-22 14:32:27 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:46 -0300 |
commit | 4fdc15ef7f11956e4f0bf34fce60f8aa0252eace (patch) | |
tree | 8e4a50732e8136e94442daaadc895b3ea21456e2 /PySide/QtGui | |
parent | 74e10eef63b7ce30e5b31f1d47f1c4454e488120 (diff) |
Fix QColor __reduce__ function.
Fixes bug #983.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide/QtGui')
-rw-r--r-- | PySide/QtGui/typesystem_gui_common.xml | 10 |
1 files changed, 8 insertions, 2 deletions
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()"); + } } </template> <value-type name="QColor"> @@ -1203,7 +1205,9 @@ } #endif default: - %PYARG_0 = 0; + { + %PYARG_0 = Py_BuildValue("(N(O))", PyObject_Type(%PYSELF), Py_None); + } } </inject-code> </add-function> @@ -1240,8 +1244,10 @@ break; } default: + { %PYARG_0 = 0; } + } </inject-code> </add-function> <!-- ### "QColor(QColor::Spec)" is an internal method. --> |