From 3c7e551a993662623b16fca1c7add077b9ecdd19 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 16 Aug 2011 13:47:42 -0300 Subject: Fixed QColor.__reduce__ function. Fixes bug #960. Reviewer: Marcelo Lira Luciano Wolf --- PySide/QtGui/typesystem_gui_common.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'PySide') diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 48e0a3064..2aad00ce8 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -1131,7 +1131,7 @@ case QColor::Hsl: { qreal h, s, l, a; - %CPPSELF.getHsvF(&h, &s, &l, &a); + %CPPSELF.getHslF(&h, &s, &l, &a); QString repr = QString().sprintf("PySide.QtGui.QColor.fromHslF(%.6f, %.6f, %.6f, %.6f)", h, s, l, a); %PYARG_0 = PyString_FromString(qPrintable(repr)); break; @@ -1156,7 +1156,7 @@ - + PyObject *createFunction = 0; @@ -1190,7 +1190,7 @@ { qreal h, s, l, a; createFunction = PyObject_GetAttrString(%PYSELF, "fromHslF"); - %CPPSELF.getHsvF(&h, &s, &l, &a); + %CPPSELF.getHslF(&h, &s, &l, &a); %PYARG_0 = Py_BuildValue("(N(ffff))", createFunction, h, s, l, a); break; } @@ -1201,7 +1201,7 @@ - + switch(%CPPSELF.spec()) { case QColor::Rgb: @@ -1228,7 +1228,7 @@ case QColor::Hsl: { int h, s, l, a; - %CPPSELF.getHsv(&h, &s, &l, &a); + %CPPSELF.getHsl(&h, &s, &l, &a); %PYARG_0 = Py_BuildValue("iiii", h, s, l, a); break; } -- cgit v1.2.3