Skip to content

Commit

Permalink
Add WMS/WFS to QgsField::ConfigurationFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 14, 2020
1 parent b516a49 commit 19d4b52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion python/gui/auto_generated/qgscheckablecombobox.sip.in
Expand Up @@ -66,7 +66,7 @@ no items selected.

void addItemWithCheckState( const QString &text, Qt::CheckState state, const QVariant &userData = QVariant() );
%Docstring
Adds an item to the combobox with the given ``text``, check ``state``
Adds an item to the combobox with the given ``text``, check ``state`` (stored in the Qt.CheckStateRole)
and containing the specified ``userData`` (stored in the Qt.UserRole).
The item is appended to the list of existing items.

Expand Down Expand Up @@ -122,6 +122,8 @@ Toggles the item check state
.. seealso:: :py:func:`setItemCheckState`
%End

QgsCheckableItemModel *model() const;

virtual void hidePopup();

%Docstring
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgsfield.h
Expand Up @@ -81,7 +81,9 @@ class CORE_EXPORT QgsField
{
None = 0, //!< No flag is defined
Searchable = 0x1, //!< Defines if the field is searchable (used in the locator search for instance)
DefaultFlags = Searchable, //!< Default set of flags for a field
Wms = 0x2, //!< Fields is available if layer is served as WMS
Wfs = 0x3, //!< Fields is available if layer is served as WFS
DefaultFlags = Searchable | Wms | Wfs, //!< Default set of flags for a field
};
Q_ENUM( ConfigurationFlag )
Q_DECLARE_FLAGS( ConfigurationFlags, ConfigurationFlag )
Expand Down

0 comments on commit 19d4b52

Please sign in to comment.