mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[sipify] Handle enum values using bitshift operators
This commit is contained in:
parent
7db1913c07
commit
3e9c527dc7
@ -266,7 +266,7 @@ while(!eof $header){
|
||||
if ($line =~ m/\};/){
|
||||
last;
|
||||
}
|
||||
$line =~ s/(\s*\w+)(\s*=\s*\w+.*?)?(,?).*$/$1$3/;
|
||||
$line =~ s/(\s*\w+)(\s*=\s*[\w\s\d<]+.*?)?(,?).*$/$1$3/;
|
||||
print $line;
|
||||
}
|
||||
print $line;
|
||||
|
@ -61,6 +61,8 @@ class QgsSipifyHeader : QtClass<QVariant>
|
||||
{
|
||||
Success,
|
||||
NoSuccess,
|
||||
ImaginarySuccess,
|
||||
RecursiveSuccess,
|
||||
};
|
||||
typedef QFlags<QgsSipifyHeader::MyEnum> Flags;
|
||||
|
||||
|
@ -98,6 +98,8 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private QgsBaseCla
|
||||
{
|
||||
Success = 0, //!< Edit operation was successful
|
||||
NoSuccess = 1, //!< Edit operation resulted in an empty geometry
|
||||
ImaginarySuccess = 1 << 3, //!< Edit operation resulted in an imaginary geometry
|
||||
RecursiveSuccess = 1 << 4, //!< Edit operation resulted in an n-dimensional wormhole
|
||||
};
|
||||
Q_DECLARE_FLAGS( Flags, MyEnum )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user