Remove unnecessary compatibility code

This commit is contained in:
Nyall Dawson 2024-02-27 08:42:56 +10:00
parent ef4ffa528b
commit 8c15083f14

View File

@ -141,8 +141,7 @@ if (QT_VERSION >= 0x060000):
QMetaType.Type.__eq__ = lambda t1, t2: _force_int(t1) == _force_int(t2)
# These types aren't IntEnums or IntFlags, so patch that back in
Qt.ItemFlag.__int__ = _force_int
Qt.ItemFlag.__eq__ = lambda t1, t2: _force_int(t1) == _force_int(t2)
# See discussion at https://www.riverbankcomputing.com/pipermail/pyqt/2024-February/045715.html
Qt.CheckState.__int__ = _force_int
Qt.CheckState.__eq__ = lambda t1, t2: _force_int(t1) == _force_int(t2)