aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.araujo@kdab.com>2020-06-10 16:08:12 -0300
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-06 13:03:29 +0200
commite5413e235d1227b906f5e6a4018a257935cdd570 (patch)
tree3d9c3bcdcbdb1f2d1b5c74f4bf2fb5840499c3a1 /sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml
parent776789ef3ccaf4b09fcc02754c6725379ce45651 (diff)
Generate flags operator methods for QFlags on hidden top level namespace
Factor out method to write the operator functions and call it for the module wrapper, too. Fixes: PYSIDE-1326 Change-Id: I5b6faf19d253d5828474dec36b454aa20753123c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml')
-rw-r--r--sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml b/sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml
index 1e777edd2..c959e7fd3 100644
--- a/sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml
+++ b/sources/pyside2/tests/pysidetest/typesystem_pysidetest.xml
@@ -60,6 +60,12 @@
</modify-argument>
</modify-function>
</object-type>
+
+ <namespace-type name="FlagsNamespace" visible="no">
+ <enum-type name="Option" flags="Options"/>
+ <object-type name="ClassForEnum" />
+ </namespace-type>
+
<suppress-warning text="type 'QPyTextObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
<!-- Qt5: I never really understood this warning. Probably it is because there
is no way to instantiate the class. Anyway, why must this class emit this warning?