Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add operator for flgs and update docs
  • Loading branch information
elpaso authored and nyalldawson committed Nov 4, 2021
1 parent 2fbb830 commit d4876f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion python/core/auto_generated/qgis.sip.in
Expand Up @@ -110,7 +110,6 @@ The development version
typedef QFlags<Qgis::VectorLayerTypeFlag> VectorLayerTypeFlags;



enum class PythonMacroMode
{
Never,
Expand Down Expand Up @@ -828,6 +827,8 @@ QFlags<Qgis::MapSettingsFlag> operator|(Qgis::MapSettingsFlag f1, QFlags<Qgis::M

QFlags<Qgis::RenderContextFlag> operator|(Qgis::RenderContextFlag f1, QFlags<Qgis::RenderContextFlag> f2);

QFlags<Qgis::VectorLayerTypeFlag> operator|(Qgis::VectorLayerTypeFlag f1, QFlags<Qgis::VectorLayerTypeFlag> f2);




Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/vector/qgsvectorlayer.sip.in
Expand Up @@ -468,7 +468,7 @@ Returns ``True`` if the layer is a query (SQL) layer.

Qgis::VectorLayerTypeFlags vectorLayerTypeFlags() const;
%Docstring
Returns ``True`` if the layer is a query (SQL) layer.
Returns the vector layer type flags.

.. seealso:: :py:func:`isSqlQuery`

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgis.h
Expand Up @@ -148,7 +148,6 @@ class CORE_EXPORT Qgis
//! Vector layer type flags
Q_DECLARE_FLAGS( VectorLayerTypeFlags, VectorLayerTypeFlag )


/**
* Authorisation to run Python Macros
* \since QGIS 3.10
Expand Down Expand Up @@ -1324,6 +1323,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS( Qgis::AnnotationItemFlags )
Q_DECLARE_OPERATORS_FOR_FLAGS( Qgis::AnnotationItemGuiFlags )
Q_DECLARE_OPERATORS_FOR_FLAGS( Qgis::MapSettingsFlags )
Q_DECLARE_OPERATORS_FOR_FLAGS( Qgis::RenderContextFlags )
Q_DECLARE_OPERATORS_FOR_FLAGS( Qgis::VectorLayerTypeFlags )


// hack to workaround warnings when casting void pointers
Expand Down
2 changes: 1 addition & 1 deletion src/core/vector/qgsvectorlayer.h
Expand Up @@ -583,7 +583,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
bool isSqlQuery() const;

/**
* Returns TRUE if the layer is a query (SQL) layer.
* Returns the vector layer type flags.
*
* \see isSqlQuery()
* \since QGIS 3.24
Expand Down

0 comments on commit d4876f3

Please sign in to comment.