diff options
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 4 | ||||
-rw-r--r-- | tests/QtCore/qabs_test.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 9d38208..94a0a8c 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -517,9 +517,9 @@ <include file-name="QTextDocument" location="global"/> </extra-includes> </namespace-type> - <add-function signature="qAbs(long)" return-type="long"> + <add-function signature="qAbs(double)" return-type="double"> <inject-code class="target" position="beginning"> - %PYARG_0 = %CONVERTTOPYTHON[long](qAbs(%1)); + %PYARG_0 = %CONVERTTOPYTHON[double](qAbs(%1)); </inject-code> </add-function> diff --git a/tests/QtCore/qabs_test.py b/tests/QtCore/qabs_test.py index 1727ae6..37ff9c7 100644 --- a/tests/QtCore/qabs_test.py +++ b/tests/QtCore/qabs_test.py @@ -14,7 +14,8 @@ class QAbsTest(unittest.TestCase): check(0) check(-10) check(10) - + check(10.5) + check(-10.5) if __name__ == '__main__': unittest.main() |