Skip to content

Commit

Permalink
add Q_ENUM macro to QgsVectorLayer::EditResult and SelectBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 5, 2019
1 parent 8508dc0 commit 8e40df8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/core/auto_additions/qgsvectorlayer.py
@@ -0,0 +1,3 @@
# The following has been generated automatically from src/core/qgsvectorlayer.h
QgsVectorLayer.EditResult.baseClass = QgsVectorLayer
QgsVectorLayer.SelectBehavior.baseClass = QgsVectorLayer
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.h
Expand Up @@ -403,6 +403,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
FetchFeatureFailed = 3, //!< Unable to fetch requested feature
InvalidLayer = 4, //!< Edit failed due to invalid layer
};
Q_ENUM( EditResult )

//! Selection behavior
enum SelectBehavior
Expand All @@ -412,6 +413,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
IntersectSelection, //!< Modify current selection to include only select features which match
RemoveFromSelection, //!< Remove from current selection
};
Q_ENUM( SelectBehavior )

/**
* Setting options for loading vector layers.
Expand Down

0 comments on commit 8e40df8

Please sign in to comment.