[sipify] fix enum again

This commit is contained in:
Denis Rouzaud 2017-06-08 15:50:48 +02:00
parent 532b9a142a
commit f5c3b8a1f8
6 changed files with 17 additions and 17 deletions

View File

@ -31,7 +31,7 @@ class QgsLayerTreeModelLegendNode : QObject
enum LegendNodeRoles
{
RuleKeyRole
RuleKeyRole,
ParentRuleKeyRole
};

View File

@ -21,8 +21,8 @@ class QgsBrowserModel : QAbstractItemModel
enum ItemDataRole
{
PathRole
CommentRole
PathRole,
CommentRole,
};
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;

View File

@ -27,14 +27,14 @@ class QgsFieldModel : QAbstractItemModel
enum FieldRoles
{
FieldNameRole
FieldIndexRole
ExpressionRole
IsExpressionRole
ExpressionValidityRole
FieldTypeRole
FieldOriginRole
IsEmptyRole
FieldNameRole,
FieldIndexRole,
ExpressionRole,
IsExpressionRole,
ExpressionValidityRole,
FieldTypeRole,
FieldOriginRole,
IsEmptyRole,
};
explicit QgsFieldModel( QObject *parent /TransferThis/ = 0 );

View File

@ -27,7 +27,7 @@ class QgsMapLayerModel : QAbstractItemModel
enum ItemDataRole
{
LayerIdRole
LayerIdRole,
LayerRole,
EmptyRole,
AdditionalRole,

View File

@ -161,10 +161,10 @@ class QgsStringUtils
enum Capitalization
{
MixedCase
AllUppercase
AllLowercase
ForceFirstLetterToCapital
MixedCase,
AllUppercase,
AllLowercase,
ForceFirstLetterToCapital,
};
static QString capitalize( const QString &string, Capitalization capitalization );

View File

@ -622,7 +622,7 @@ while ($LINE_IDX < $LINE_COUNT){
last;
}
do {no warnings 'uninitialized';
my $enum_decl = $LINE =~ s/(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*[\w\s\d<|-]+.*?)?(,?).*$/$1$2$3/r;
my $enum_decl = $LINE =~ s/(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*(?:[\w\s\d|+-]|::|<<)+.*?)?(,?).*$/$1$2$3/r;
$enum_decl = fix_annotations($enum_decl);
write_output("ENU3", "$enum_decl\n");
};