aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/glue/qtgui.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-10 12:50:39 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-14 13:36:42 +0000
commit2b0ea8856212b0320238f1c14091a1396039c0a4 (patch)
tree26c93c6f06ccac5041e1b6b3cdba8b00f4195730 /sources/pyside2/PySide2/glue/qtgui.cpp
parentaf89fec03d0d3267876cae0201536ca7b8b4cc9f (diff)
Adapt to new changes in qtbase
- Remove more math functions - Renamed enum in QLibraryInfo - Use float instead of qreal in QColor Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: Ic3120d1776f01943e38395a1a30d62bf6f5ccc36 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/PySide2/glue/qtgui.cpp')
-rw-r--r--sources/pyside2/PySide2/glue/qtgui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/sources/pyside2/PySide2/glue/qtgui.cpp b/sources/pyside2/PySide2/glue/qtgui.cpp
index 2a139fe69..869fb9dc4 100644
--- a/sources/pyside2/PySide2/glue/qtgui.cpp
+++ b/sources/pyside2/PySide2/glue/qtgui.cpp
@@ -170,34 +170,34 @@ PyObject *args = PyTuple_GET_ITEM(%1, 1);
switch (%CPPSELF.spec()) {
case QColor::Rgb:
{
- qreal r, g, b, a;
+ float r, g, b, a;
%CPPSELF.getRgbF(&r, &g, &b, &a);
%PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setRgbF", float(r), float(g), float(b), float(a));
+ "setRgbF", r, g, b, a);
break;
}
case QColor::Hsv:
{
- qreal h, s, v, a;
+ float h, s, v, a;
%CPPSELF.getHsvF(&h, &s, &v, &a);
%PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setHsvF", float(h), float(s), float(v), float(a));
+ "setHsvF", h, s, v, a);
break;
}
case QColor::Cmyk:
{
- qreal c, m, y, k, a;
+ float c, m, y, k, a;
%CPPSELF.getCmykF(&c, &m, &y, &k, &a);
%PYARG_0 = Py_BuildValue("(ON(s(fffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setCmykF", float(c), float(m), float(y), float(k), float(a));
+ "setCmykF", c, m, y, k, a);
break;
}
case QColor::Hsl:
{
- qreal h, s, l, a;
+ float h, s, l, a;
%CPPSELF.getHslF(&h, &s, &l, &a);
%PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setHslF", float(h), float(s), float(l), float(a));
+ "setHslF", h, s, l, a);
break;
}
default: