aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/typesystem_templates.xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-11-14 15:57:54 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-11-29 10:45:01 +0000
commit313d2807e1aa53a0584f62879284f156f27b83c0 (patch)
treea43aedf1c23e842fe1c8b2010dffad3ee71b001f /sources/pyside2/PySide2/typesystem_templates.xml
parent1484dc600a35ea5bd1517ed945902151ff293c14 (diff)
Add QOpenGLFunctions::glGetString(), QOpenGLExtraFunctions::glGetStringi()
Modify the return type to be a QString. Task-number: PYSIDE-516 Change-Id: Ic79d4c69956cd439b60face4ce87788c451bfa96 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/typesystem_templates.xml')
-rw-r--r--sources/pyside2/PySide2/typesystem_templates.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/typesystem_templates.xml b/sources/pyside2/PySide2/typesystem_templates.xml
index 7ac4ac158..1715c0253 100644
--- a/sources/pyside2/PySide2/typesystem_templates.xml
+++ b/sources/pyside2/PySide2/typesystem_templates.xml
@@ -167,6 +167,14 @@
%PYARG_0 = %CONVERTTOPYTHON[QRectF](rect_);
</template>
+ <template name="glGetString_return_QString">
+ %BEGIN_ALLOW_THREADS
+ const GLubyte *us = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES);
+ const QString s = QString::fromLocal8Bit(reinterpret_cast&lt;const char *&gt;(us));
+ %END_ALLOW_THREADS
+ %PYARG_0 = %CONVERTTOPYTHON[QString](s);
+ </template>
+
<template name="fix_args,QRect*">
QRect rect_;
%BEGIN_ALLOW_THREADS