Skip to content

Commit 51aa44d

Browse files
committedApr 19, 2017
[sipify] fix enum combination
1 parent 55860e8 commit 51aa44d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
 

‎python/core/processing/qgsprocessingalgorithm.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class QgsProcessingAlgorithm
2727
FlagHideFromToolbox,
2828
FlagHideFromModeler,
2929
FlagSupportsBatch,
30-
FlagDeprecated
30+
FlagDeprecated,
3131
};
3232
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;
3333

‎scripts/sipify.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ sub processDoxygenLine
289289
if ($line =~ m/\};/){
290290
last;
291291
}
292-
$line =~ s/(\s*\w+)(\s*=\s*[\w\s\d<]+.*?)?(,?).*$/$1$3/;
292+
$line =~ s/(\s*\w+)(\s*=\s*[\w\s\d<|]+.*?)?(,?).*$/$1$3/;
293293
print $line;
294294
}
295295
print $line;

‎tests/scripts/sipifyheader.expected.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class QgsSipifyHeader : QtClass<QVariant>
6464
NoSuccess,
6565
ImaginarySuccess,
6666
RecursiveSuccess,
67+
SuccessCombination,
6768
};
6869
typedef QFlags<QgsSipifyHeader::MyEnum> Flags;
6970

‎tests/scripts/sipifyheader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
102102
NoSuccess = 1, //!< Edit operation resulted in an empty geometry
103103
ImaginarySuccess = 1 << 3, //!< Edit operation resulted in an imaginary geometry
104104
RecursiveSuccess = 1 << 4, //!< Edit operation resulted in an n-dimensional wormhole
105+
SuccessCombination = Success | ImaginarySuccess, //!< Holy Graal
105106
};
106107
Q_DECLARE_FLAGS( Flags, MyEnum )
107108

0 commit comments

Comments
 (0)
Please sign in to comment.