Add-on issues with Anki 2.1.50 Beta

The compat shims can’t cover cases where the enum was defined in a parent class. It needs to be changed to something like QSizePolicy.AdjustToContents.