From 7040ad41d2d2d339609b2cf2c2744a1a4138d6ac Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sat, 11 Jun 2016 12:50:19 +0200 Subject: [PATCH] Fix sip bindings --- python/gui/qgsfieldmodel.sip | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/gui/qgsfieldmodel.sip b/python/gui/qgsfieldmodel.sip index 27008c7e10a..1a98ce5122c 100644 --- a/python/gui/qgsfieldmodel.sip +++ b/python/gui/qgsfieldmodel.sip @@ -21,6 +21,14 @@ class QgsFieldModel : QAbstractItemModel ExpressionValidityRole, /*!< return if expression is valid or not */ FieldTypeRole /*!< return the field type (if a field, return QVariant if expression) */ }; + /** + * Filters for which fields should be shown + */ + enum Filter + { + WritableFields = 1 //!< Only show writable fields + }; + typedef QFlags Filters; /** * @brief QgsFieldModel creates a model to display the fields of a given layer