Skip to content

Commit

Permalink
[sipify] fix enum combination
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 19, 2017
1 parent 55860e8 commit 51aa44d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/processing/qgsprocessingalgorithm.sip
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class QgsProcessingAlgorithm
FlagHideFromToolbox,
FlagHideFromModeler,
FlagSupportsBatch,
FlagDeprecated
FlagDeprecated,
};
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;

Expand Down
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ sub processDoxygenLine
if ($line =~ m/\};/){
last;
}
$line =~ s/(\s*\w+)(\s*=\s*[\w\s\d<]+.*?)?(,?).*$/$1$3/;
$line =~ s/(\s*\w+)(\s*=\s*[\w\s\d<|]+.*?)?(,?).*$/$1$3/;
print $line;
}
print $line;
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/sipifyheader.expected.sip
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class QgsSipifyHeader : QtClass<QVariant>
NoSuccess,
ImaginarySuccess,
RecursiveSuccess,
SuccessCombination,
};
typedef QFlags<QgsSipifyHeader::MyEnum> Flags;

Expand Down
1 change: 1 addition & 0 deletions tests/scripts/sipifyheader.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
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
SuccessCombination = Success | ImaginarySuccess, //!< Holy Graal
};
Q_DECLARE_FLAGS( Flags, MyEnum )

Expand Down

0 comments on commit 51aa44d

Please sign in to comment.