mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
sip6 converts all enums to python Enums, but ONLY creates Enums with IntFlags types when the c++ type is an enum class : int. Accordingly we need to patch back in all the operations which treat enum values as ints, like |, &, bool, etc. The long term solution here is to move all our c++ enums to enum class, but that's not always straightforward and can break API for plugins if it involves the signature of virtual methods.