Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better enum names, better dox
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
3nids and nyalldawson committed Sep 15, 2020
1 parent b923c4a commit 9cf85dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsfield.sip.in
Expand Up @@ -293,7 +293,7 @@ Formats string for display

static QString readableConfigurationFlag( ConfigurationFlag flag );
%Docstring
Returns the reabable and translated value of the configuration flag
Returns a readable and translated value of the configuration flag

.. versionadded:: 3.16
%End
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsfield.cpp
Expand Up @@ -355,9 +355,9 @@ QString QgsField::readableConfigurationFlag( QgsField::ConfigurationFlag flag )
case ConfigurationFlag::Searchable:
return QObject::tr( "Searchable" );
case ConfigurationFlag::Wms:
return QStringLiteral( "WMS" );
return QStringLiteral( "Expose via WMS" );
case ConfigurationFlag::Wfs:
return QStringLiteral( "WFS" );
return QStringLiteral( "Expose via WFS" );
case ConfigurationFlag::DefaultFlags:
return QObject::tr( "Default flags" );
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsfield.h
Expand Up @@ -81,8 +81,8 @@ class CORE_EXPORT QgsField
{
None = 0, //!< No flag is defined
Searchable = 1 << 1, //!< Defines if the field is searchable (used in the locator search for instance)
Wms = 1 << 2, //!< Fields is available if layer is served as WMS
Wfs = 1 << 3, //!< Fields is available if layer is served as WFS
ExposeViaWms = 1 << 2, //!< Fields is available if layer is served as WMS from QGIS server
ExposeViaWfs = 1 << 3, //!< Fields is available if layer is served as WFS from QGIS server
DefaultFlags = Searchable | Wms | Wfs, //!< Default set of flags for a field
};
Q_ENUM( ConfigurationFlag )
Expand Down

0 comments on commit 9cf85dd

Please sign in to comment.