mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-11 00:04:09 -04:00
Correctly tag Qgis.WkbType as IntEnum
This commit is contained in:
parent
7c3497616b
commit
eb81a07732
@ -109,7 +109,7 @@ The development version
|
|||||||
typedef QFlags<Qgis::LayerFilter> LayerFilters;
|
typedef QFlags<Qgis::LayerFilter> LayerFilters;
|
||||||
|
|
||||||
|
|
||||||
enum class WkbType
|
enum class WkbType /BaseType=IntEnum/
|
||||||
{
|
{
|
||||||
Unknown,
|
Unknown,
|
||||||
Point,
|
Point,
|
||||||
|
@ -1605,7 +1605,7 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
if (defined $py_enum_type and $py_enum_type eq "IntFlag") {
|
if (defined $py_enum_type and $py_enum_type eq "IntFlag") {
|
||||||
push @ENUM_INTFLAG_TYPES, $enum_cpp_name;
|
push @ENUM_INTFLAG_TYPES, $enum_cpp_name;
|
||||||
}
|
}
|
||||||
if ( defined $enum_type and $enum_type eq "int" ) {
|
if (defined $enum_type and ($enum_type eq "int" or $enum_type eq "quint32")) {
|
||||||
push @ENUM_INT_TYPES, "$ACTUAL_CLASS.$enum_qualname";
|
push @ENUM_INT_TYPES, "$ACTUAL_CLASS.$enum_qualname";
|
||||||
if ( $is_qt6 eq 1 ) {
|
if ( $is_qt6 eq 1 ) {
|
||||||
if (defined $py_enum_type) {
|
if (defined $py_enum_type) {
|
||||||
@ -1614,9 +1614,9 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
$enum_decl .= " /BaseType=IntEnum/"
|
$enum_decl .= " /BaseType=IntEnum/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} elsif (defined $enum_type) {
|
||||||
elsif (defined $isclass)
|
exit_with_error("Unhandled enum type $enum_type for $enum_cpp_name");
|
||||||
{
|
} elsif (defined $isclass) {
|
||||||
push @ENUM_CLASS_NON_INT_TYPES, "$ACTUAL_CLASS.$enum_qualname";
|
push @ENUM_CLASS_NON_INT_TYPES, "$ACTUAL_CLASS.$enum_qualname";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user