Commit 9ddbf70
[Backport] Add "enum class" values to the enum type in Python
Enum class values seem to have pretty generic names (as there is no danger
of name clashes in C++, as they must always be prefixed with the enum
class name). So add them to the enum type in Python too, so one can
always write something like QActionGroup.ExclusionPolicy.None instead of
QActionGroup.None.
Ideally we wouldn't add the enum values to the parent class at all, but
I don't want to break compatibility with older versions of PythonQt.
(cherry picked from commit MeVisLab/pythonqt@c35d010)1 parent 09f907e commit 9ddbf70
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
856 | 859 | | |
857 | 860 | | |
858 | 861 | | |
859 | 862 | | |
860 | 863 | | |
861 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
862 | 876 | | |
863 | 877 | | |
864 | 878 | | |
| |||
0 commit comments