aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/libpyside/pysideclassinfo_p.h
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-09-17 14:14:04 +0200
committerChristian Tismer <tismer@stackless.com>2019-09-21 10:06:25 +0200
commit9c5950320814d6e0cfe7d6ebe9850ae49c18ae06 (patch)
tree30033b9dd57056d220145b8df71a8ceab167d502 /sources/pyside2/libpyside/pysideclassinfo_p.h
parent68bcc8ec491edca74b2dc79ee9e0fa3450f0fe30 (diff)
Ignore deprecation warning about QSysInfo class
Amends 1bb4368a420ef12e3714bd4edfff34b8b3c983a8 . QSysInfo is deprecated and replaced by the QOperatingSystemVersion class which already exists. Before Qt 6.0 is out, we can not remove these classes. Fortunately, the warning can be suppressed by setting QT_WARNING_DISABLE_DEPRECATED. The options was already in the generated code, but the placement was too late. The qsysinfo include happens in the line // module include #include "pyside2_qtcore_python.h" which comes right after the first "usePySideExtensions" section. Furthermore, the used template in headergenerator.cpp needed the setting when the deprecated enum ocurred. The section after "// Macros for type check" got the setting, too, so that all calls to HeaderGenerator::writeSbkTypeFunction were excluded from warnings. Change-Id: Ife96f5ade26437b23cb756ee1b94af23d4a81faa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside/pysideclassinfo_p.h')
0 files changed, 0 insertions, 0 deletions