Skip to content
Permalink
Browse files

Add WMS/WFS to QgsField::ConfigurationFlag

  • Loading branch information
3nids committed Sep 14, 2020
1 parent b516a49 commit 19d4b52f1069b1c055bf0ae76dabe54642ea7fbe
Showing with 6 additions and 2 deletions.
  1. +3 −1 python/gui/auto_generated/qgscheckablecombobox.sip.in
  2. +3 −1 src/core/qgsfield.h
@@ -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.

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

QgsCheckableItemModel *model() const;

virtual void hidePopup();

%Docstring
@@ -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 )

0 comments on commit 19d4b52

Please sign in to comment.
You can’t perform that action at this time.