Skip to content
Permalink
Browse files

Nullptr consistency in dox

  • Loading branch information
nyalldawson committed Feb 26, 2019
1 parent d60b5e2 commit a7ca08784ccf3fbfd5fe0f3cccc3fd0d091d49ce
Showing with 322 additions and 310 deletions.
  1. +2 −2 python/3d/auto_generated/qgsrulebased3drenderer.sip.in
  2. +1 −1 python/core/auto_generated/3d/qgs3drendererregistry.sip.in
  3. +1 −1 python/core/auto_generated/expression/qgsexpressioncontextutils.sip.in
  4. +2 −2 python/core/auto_generated/layertree/qgslayertreegroup.sip.in
  5. +8 −8 python/core/auto_generated/layertree/qgslayertreemodel.sip.in
  6. +3 −3 python/core/auto_generated/layertree/qgslayertreemodellegendnode.sip.in
  7. +1 −1 python/core/auto_generated/layertree/qgslayertreenode.sip.in
  8. +1 −1 python/core/auto_generated/layout/qgslayout.sip.in
  9. +1 −1 python/core/auto_generated/layout/qgsmasterlayoutinterface.sip.in
  10. +1 −1 python/core/auto_generated/qgsapplication.sip.in
  11. +4 −4 python/core/auto_generated/qgsdatadefinedsizelegend.sip.in
  12. +1 −1 python/core/auto_generated/qgsdataitem.sip.in
  13. +3 −3 python/core/auto_generated/qgsdataitemprovider.sip.in
  14. +1 −1 python/core/auto_generated/qgsdiagramrenderer.sip.in
  15. +4 −4 python/core/auto_generated/qgsexpressioncontext.sip.in
  16. +4 −4 python/core/auto_generated/qgsmaplayer.sip.in
  17. +1 −1 python/core/auto_generated/qgsmaplayerrenderer.sip.in
  18. +2 −2 python/core/auto_generated/qgsmaplayerstore.sip.in
  19. +1 −1 python/core/auto_generated/qgsmaplayerstylemanager.sip.in
  20. +3 −3 python/core/auto_generated/qgspluginlayerregistry.sip.in
  21. +5 −5 python/core/auto_generated/qgspointlocator.sip.in
  22. +3 −3 python/core/auto_generated/qgsproject.sip.in
  23. +2 −2 python/core/auto_generated/qgsprojectstorageregistry.sip.in
  24. +1 −1 python/core/auto_generated/qgsproperty.sip.in
  25. +3 −4 python/core/auto_generated/qgsproviderregistry.sip.in
  26. +2 −2 python/core/auto_generated/qgsrulebasedlabeling.sip.in
  27. +1 −1 python/core/auto_generated/qgstracer.sip.in
  28. +2 −2 python/core/auto_generated/qgsvectorfilewriter.sip.in
  29. +1 −1 python/core/auto_generated/qgsvectorlayer.sip.in
  30. +1 −1 python/core/auto_generated/qgsvectorlayercache.sip.in
  31. +10 −2 python/core/auto_generated/qgsvectorlayerjoininfo.sip.in
  32. +1 −1 python/core/auto_generated/raster/qgsrasterdataprovider.sip.in
  33. +2 −2 python/core/auto_generated/symbology/qgscategorizedsymbolrenderer.sip.in
  34. +2 −2 python/core/auto_generated/symbology/qgsgraduatedsymbolrenderer.sip.in
  35. +1 −1 python/core/auto_generated/symbology/qgsinvertedpolygonrenderer.sip.in
  36. +2 −2 python/core/auto_generated/symbology/qgslegendsymbolitem.sip.in
  37. +1 −1 python/core/auto_generated/symbology/qgsrenderer.sip.in
  38. +5 −5 python/core/auto_generated/symbology/qgsrendererregistry.sip.in
  39. +1 −1 python/core/auto_generated/symbology/qgsrulebasedrenderer.sip.in
  40. +2 −2 python/core/auto_generated/symbology/qgssinglesymbolrenderer.sip.in
  41. +2 −2 python/core/auto_generated/symbology/qgssymbol.sip.in
  42. +2 −2 python/core/auto_generated/symbology/qgssymbollayerregistry.sip.in
  43. +1 −1 python/core/auto_generated/symbology/qgssymbollayerutils.sip.in
  44. +1 −1 python/gui/auto_generated/editorwidgets/core/qgseditorwidgetfactory.sip.in
  45. +4 −4 python/gui/auto_generated/editorwidgets/core/qgseditorwidgetregistry.sip.in
  46. +2 −2 python/gui/auto_generated/editorwidgets/core/qgseditorwidgetwrapper.sip.in
  47. +2 −2 python/gui/auto_generated/editorwidgets/core/qgswidgetwrapper.sip.in
  48. +1 −1 python/gui/auto_generated/editorwidgets/qgsqmlwidgetwrapper.sip.in
  49. +1 −1 python/gui/auto_generated/layertree/qgslayertreemapcanvasbridge.sip.in
  50. +10 −3 python/gui/auto_generated/layertree/qgslayertreeview.sip.in
  51. +1 −1 python/gui/auto_generated/layout/qgslayoutview.sip.in
  52. +1 −1 python/gui/auto_generated/processing/qgsprocessingtoolboxmodel.sip.in
  53. +1 −1 python/gui/auto_generated/qgisinterface.sip.in
  54. +2 −2 python/gui/auto_generated/qgscolorrampbutton.sip.in
  55. +1 −1 python/gui/auto_generated/qgsconfigureshortcutsdialog.sip.in
  56. +1 −1 python/gui/auto_generated/qgsdatasourceselectdialog.sip.in
  57. +2 −2 python/gui/auto_generated/qgslegendfilterbutton.sip.in
  58. +1 −1 python/gui/auto_generated/qgsmapcanvas.sip.in
  59. +1 −1 python/gui/auto_generated/qgsmapcanvastracer.sip.in
  60. +2 −2 python/gui/auto_generated/qgsmaptool.sip.in
  61. +2 −2 python/gui/auto_generated/qgsmaptoolcapture.sip.in
  62. +1 −1 python/gui/auto_generated/qgssourceselectprovider.sip.in
  63. +1 −1 python/gui/auto_generated/raster/qgsrendererrasterpropertieswidget.sip.in
  64. +1 −1 python/gui/auto_generated/symbology/qgsdatadefinedsizelegendwidget.sip.in
  65. +2 −2 python/gui/auto_generated/symbology/qgsrendererwidget.sip.in
  66. +2 −2 python/gui/auto_generated/symbology/qgssymbolselectordialog.sip.in
  67. +3 −3 src/3d/chunks/qgschunknode_p.h
  68. +1 −1 src/3d/qgs3dutils.h
  69. +1 −1 src/3d/qgslayoutitem3dmap.h
  70. +3 −3 src/3d/qgsrulebased3drenderer.h
  71. +1 −1 src/analysis/interpolation/NormVecDecorator.h
  72. +1 −1 src/app/3d/qgs3dmapcanvas.h
  73. +1 −1 src/app/qgsprojectlayergroupdialog.h
  74. +1 −1 src/core/3d/qgs3drendererregistry.h
  75. +1 −1 src/core/expression/qgsexpressioncontextutils.h
  76. +2 −2 src/core/layertree/qgslayertreegroup.h
  77. +10 −10 src/core/layertree/qgslayertreemodel.h
  78. +3 −3 src/core/layertree/qgslayertreemodellegendnode.h
  79. +1 −1 src/core/layertree/qgslayertreenode.h
  80. +1 −1 src/core/layout/qgslayout.h
  81. +1 −1 src/core/layout/qgslayoutitemlegend.h
  82. +1 −1 src/core/layout/qgsmasterlayoutinterface.h
  83. +1 −1 src/core/pal/pointset.h
  84. +1 −1 src/core/qgsapplication.h
  85. +4 −4 src/core/qgsdatadefinedsizelegend.h
  86. +1 −1 src/core/qgsdataitem.h
  87. +3 −3 src/core/qgsdataitemprovider.h
  88. +1 −1 src/core/qgsdiagramrenderer.h
  89. +1 −1 src/core/qgsdistancearea.h
  90. +5 −5 src/core/qgsexpressioncontext.h
  91. +1 −1 src/core/qgslabelfeature.h
  92. +5 −5 src/core/qgsmaplayer.h
  93. +1 −1 src/core/qgsmaplayerrenderer.h
  94. +2 −2 src/core/qgsmaplayerstore.h
  95. +1 −1 src/core/qgsmaplayerstylemanager.h
  96. +1 −1 src/core/qgsnetworkcontentfetcherregistry.h
  97. +1 −1 src/core/qgsogcutils.h
  98. +3 −3 src/core/qgspluginlayerregistry.h
  99. +5 −5 src/core/qgspointlocator.h
  100. +3 −3 src/core/qgsproject.h
  101. +2 −2 src/core/qgsprojectstorageregistry.h
  102. +1 −1 src/core/qgsproperty.h
  103. +3 −27 src/core/qgsproviderregistry.h
  104. +3 −3 src/core/qgsrulebasedlabeling.h
  105. +1 −1 src/core/qgstracer.h
  106. +4 −4 src/core/qgsvectorfilewriter.h
  107. +1 −1 src/core/qgsvectorlayercache.h
  108. +15 −4 src/core/qgsvectorlayerjoininfo.h
  109. +2 −2 src/core/qgsvectorlayerrenderer.h
  110. +2 −2 src/core/raster/qgsrasterblock.h
  111. +1 −1 src/core/raster/qgsrasterdataprovider.h
  112. +2 −2 src/core/symbology/qgscategorizedsymbolrenderer.h
  113. +2 −2 src/core/symbology/qgsgraduatedsymbolrenderer.h
  114. +1 −1 src/core/symbology/qgsinvertedpolygonrenderer.h
  115. +2 −2 src/core/symbology/qgslegendsymbolitem.h
  116. +1 −1 src/core/symbology/qgsrenderer.h
  117. +5 −5 src/core/symbology/qgsrendererregistry.h
  118. +2 −2 src/core/symbology/qgsrulebasedrenderer.h
  119. +2 −2 src/core/symbology/qgssinglesymbolrenderer.h
  120. +2 −2 src/core/symbology/qgssymbol.h
  121. +2 −2 src/core/symbology/qgssymbollayerregistry.h
  122. +1 −1 src/core/symbology/qgssymbollayerutils.h
  123. +1 −1 src/gui/editorwidgets/core/qgseditorwidgetfactory.h
  124. +4 −4 src/gui/editorwidgets/core/qgseditorwidgetregistry.h
  125. +2 −2 src/gui/editorwidgets/core/qgseditorwidgetwrapper.h
  126. +3 −3 src/gui/editorwidgets/core/qgswidgetwrapper.h
  127. +1 −1 src/gui/editorwidgets/qgsqmlwidgetwrapper.h
  128. +1 −1 src/gui/editorwidgets/qgsrelationreferencefactory.h
  129. +1 −1 src/gui/layertree/qgslayertreemapcanvasbridge.h
  130. +14 −3 src/gui/layertree/qgslayertreeview.h
  131. +1 −1 src/gui/layout/qgslayoutview.h
  132. +1 −1 src/gui/processing/qgsprocessingtoolboxmodel.h
  133. +1 −1 src/gui/qgisinterface.h
  134. +2 −2 src/gui/qgscolorrampbutton.h
  135. +1 −1 src/gui/qgsconfigureshortcutsdialog.h
  136. +1 −1 src/gui/qgsdatasourceselectdialog.h
  137. +2 −2 src/gui/qgslegendfilterbutton.h
  138. +1 −1 src/gui/qgsmapcanvas.h
  139. +1 −1 src/gui/qgsmapcanvastracer.h
  140. +2 −2 src/gui/qgsmaptool.h
  141. +2 −2 src/gui/qgsmaptoolcapture.h
  142. +1 −1 src/gui/qgssourceselectprovider.h
  143. +1 −1 src/gui/raster/qgsrendererrasterpropertieswidget.h
  144. +1 −1 src/gui/symbology/qgsdatadefinedsizelegendwidget.h
  145. +2 −2 src/gui/symbology/qgsrendererwidget.h
  146. +2 −2 src/gui/symbology/qgssymbolselectordialog.h
  147. +1 −1 src/providers/wms/qgswmscapabilities.h
  148. +2 −2 src/server/services/wms/qgswmsrenderer.h
@@ -89,7 +89,7 @@ takes ownership of symbol, symbol may be None

QgsAbstract3DSymbol *symbol() const;
%Docstring
Gets the labeling settings. May return a null pointer.
Returns the labeling settings. May return None.
%End

QString filterExpression() const;
@@ -127,7 +127,7 @@ Unique rule identifier (for identification of rule within labeling, used as prov

void setSymbol( QgsAbstract3DSymbol *symbol /Transfer/ );
%Docstring
Sets new symbol (or NULL). Deletes old symbol if any.
Sets new symbol (or None). Deletes old symbol if any.
%End

void setFilterExpression( const QString &filterExp );
@@ -33,7 +33,7 @@ Returns unique identifier of the 3D renderer class

virtual QgsAbstract3DRenderer *createRenderer( QDomElement &elem, const QgsReadWriteContext &context ) = 0 /Factory/;
%Docstring
Returns new instance of the renderer given the DOM element. Returns NULL on error.
Returns new instance of the renderer given the DOM element. Returns None on error.
Pure virtual function: must be implemented in derived classes.
%End

@@ -245,7 +245,7 @@ with the variables specified.
Creates a new scope which contains variables and functions relating to a :py:class:`QgsLayoutAtlas`.
For instance, current page name and number.

:param atlas: source atlas. If null, a set of default atlas variables will be added to the scope.
:param atlas: source atlas. If None, a set of default atlas variables will be added to the scope.
%End

static QgsExpressionContextScope *layoutItemScope( const QgsLayoutItem *item ) /Factory/;
@@ -136,13 +136,13 @@ Find all group layer nodes

static QgsLayerTreeGroup *readXml( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or null on error).
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or None on error).
Does not resolve textual references to layers. Call resolveReferences() afterwards to do it.
%End

static QgsLayerTreeGroup *readXml( QDomElement &element, const QgsProject *project, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or null on error).
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or None on error).
Also resolves textual references to layers from the project (calls resolveReferences() internally).

.. versionadded:: 3.0
@@ -41,7 +41,7 @@ whether to allow changes to the layer tree.

explicit QgsLayerTreeModel( QgsLayerTree *rootNode, QObject *parent /TransferThis/ = 0 );
%Docstring
Construct a new tree model with given layer tree (root node must not be null pointer).
Construct a new tree model with given layer tree (root node must not be None).
The root node is not transferred by the model.
%End

@@ -112,7 +112,7 @@ Check whether a flag is enabled
QgsLayerTreeNode *index2node( const QModelIndex &index ) const;
%Docstring
Returns layer tree node for given index. Returns root node for invalid index.
Returns null pointer if index does not refer to a layer tree node (e.g. it is a legend node)
Returns None if index does not refer to a layer tree node (e.g. it is a legend node)
%End
QModelIndex node2index( QgsLayerTreeNode *node ) const;
%Docstring
@@ -128,7 +128,7 @@ If ``skipInternal`` is ``True``, a node is included in the output list only if n

static QgsLayerTreeModelLegendNode *index2legendNode( const QModelIndex &index );
%Docstring
Returns legend node for given index. Returns null for invalid index
Returns legend node for given index. Returns None for invalid index

.. versionadded:: 2.6
%End
@@ -186,7 +186,7 @@ and rule key.

QgsLayerTree *rootGroup() const;
%Docstring
Returns pointer to the root node of the layer tree. Always a non-null pointer.
Returns pointer to the root node of the layer tree. Always a non None value.
%End

void setRootGroup( QgsLayerTree *newRootGroup );
@@ -254,7 +254,7 @@ A scale <= 0 indicates that no scale filtering is being performed.
void setLegendFilterByMap( const QgsMapSettings *settings );
%Docstring
Force only display of legend nodes which are valid for given map settings.
Setting null pointer or invalid map settings will disable the functionality.
Setting None or invalid map settings will disable the functionality.
Ownership of map settings pointer does not change, a copy is made.

.. versionadded:: 2.6
@@ -264,7 +264,7 @@ Ownership of map settings pointer does not change, a copy is made.
%Docstring
Filter display of legend nodes for given map settings

:param settings: Map settings. Setting a null pointer or invalid settings will disable any filter. Ownership is not changed, a copy is made
:param settings: Map settings. Setting a None or invalid settings will disable any filter. Ownership is not changed, a copy is made
:param useExtent: Whether to use the extent of the map settings as a first spatial filter on legend nodes
:param polygon: If not empty, this polygon will be used instead of the map extent to filter legend nodes
:param useExpressions: Whether to use legend node filter expressions
@@ -274,7 +274,7 @@ Filter display of legend nodes for given map settings

const QgsMapSettings *legendFilterMapSettings() const;
%Docstring
Returns the current map settings used for the current legend filter (or null if none is enabled)
Returns the current map settings used for the current legend filter (or None if none is enabled)

.. versionadded:: 2.14
%End
@@ -289,7 +289,7 @@ so that legend nodes that use map units can be scaled currectly

void legendMapViewData( double *mapUnitsPerPixel /Out/, int *dpi /Out/, double *scale /Out/ ) const;
%Docstring
Gets hints about map view - to be used in legend nodes. Arguments that are not null will receive values.
Gets hints about map view - to be used in legend nodes. Arguments that are not None will receive values.
If there are no valid map view data (from previous call to setLegendMapViewData()), returned values are zeros.

.. versionadded:: 2.6
@@ -93,15 +93,15 @@ Default implementation does nothing. *
Entry point called from QgsLegendRenderer to do the rendering.
Default implementation calls drawSymbol() and drawSymbolText() methods.

If ctx is null, this is just first stage when preparing layout - without actual rendering.
If ctx is None, this is just first stage when preparing layout - without actual rendering.
%End

virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
%Docstring
Draws symbol on the left side of the item

:param settings: Legend layout configuration
:param ctx: Context for rendering - may be null if only doing layout without actual rendering
:param ctx: Context for rendering - may be None if only doing layout without actual rendering
:param itemHeight: Minimal height of the legend item - used for correct positioning when rendering

:return: Real size of the symbol (may be bigger than "normal" symbol size from settings)
@@ -112,7 +112,7 @@ Draws symbol on the left side of the item
Draws label on the right side of the item

:param settings: Legend layout configuration
:param ctx: Context for rendering - may be null if only doing layout without actual rendering
:param ctx: Context for rendering - may be nullptrnullptr if only doing layout without actual rendering
:param symbolSize: Real size of the associated symbol - used for correct positioning when rendering

:return: Size of the label (may span multiple lines)
@@ -89,7 +89,7 @@ Find out about type of the node. It is usually shorter to use convenience functi
%End
QgsLayerTreeNode *parent();
%Docstring
Gets pointer to the parent. If parent is a null pointer, the node is a root node
Gets pointer to the parent. If parent is None, the node is a root node
%End
QList<QgsLayerTreeNode *> children();
%Docstring
@@ -78,7 +78,7 @@ Calling this method removes all items and pages from the layout.
QgsProject *project() const;
%Docstring
The project associated with the layout. Used to get access to layers, map themes,
relations and various other bits. It is never null.
relations and various other bits. It is never None.
%End

QgsLayoutModel *itemsModel();
@@ -82,7 +82,7 @@ Sets the layout's name.
virtual QgsProject *layoutProject() const = 0;
%Docstring
The project associated with the layout. Used to get access to layers, map themes,
relations and various other bits. It is never null.
relations and various other bits. It is never None.
%End

virtual QDomElement writeLayoutXml( QDomDocument &document, const QgsReadWriteContext &context ) const = 0;
@@ -717,7 +717,7 @@ Returns the application's authentication manager instance

.. note::

this can be a null pointer if called before initQgis
this can be None if called before initQgis

.. seealso:: :py:func:`initQgis`

@@ -76,11 +76,11 @@ Returns marker symbol that will be used to draw markers in legend

void setSizeScaleTransformer( QgsSizeScaleTransformer *transformer /Transfer/ );
%Docstring
Sets transformer for scaling of symbol sizes. Takes ownership of the object. Accepts null pointer to set no transformer.
Sets transformer for scaling of symbol sizes. Takes ownership of the object. Accepts None to set no transformer.
%End
QgsSizeScaleTransformer *sizeScaleTransformer() const;
%Docstring
Returns transformer for scaling of symbol sizes. Returns null if no transformer is defined.
Returns transformer for scaling of symbol sizes. Returns None if no transformer is defined.
%End

void setClasses( const QList< QgsDataDefinedSizeLegend::SizeClass > &classes );
@@ -151,7 +151,7 @@ Generates legend symbol items according to the configuration
void drawCollapsedLegend( QgsRenderContext &context, QSize *outputSize /Out/ = 0, int *labelXOffset /Out/ = 0 ) const;
%Docstring
Draw the legend if using LegendOneNodeForAll and optionally output size of the legend and x offset of labels (in painter units).
If the painter in context is null, it only does size calculation without actual rendering.
If the painter in context is None, it only does size calculation without actual rendering.
Does nothing if legend is not configured as collapsed.
%End

@@ -162,7 +162,7 @@ Returns output image that would be shown in the legend. Returns invalid image if

static QgsDataDefinedSizeLegend *readXml( const QDomElement &elem, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Creates instance from given element and returns it (caller takes ownership). Returns null on error.
Creates instance from given element and returns it (caller takes ownership). Returns None on error.
%End

void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const;
@@ -115,7 +115,7 @@ Removes a child item and returns it without deleting it. Emits relevant signals

:param child: child to remove

:return: pointer to the removed item or null if no such item was found
:return: pointer to the removed item or None if no such item was found
%End

virtual bool equal( const QgsDataItem *other );
@@ -19,7 +19,7 @@ This is the interface for those who want to add custom data items to the browser

The method createDataItem() is ever called only if capabilities() return non-zero value.
There are two occasions when createDataItem() is called:
1. to create root items (passed path is empty, parent item is null).
1. to create root items (passed path is empty, parent item is None).
2. to create items in directory structure. For this capabilities have to return at least
of the following: QgsDataProvider.Dir or QgsDataProvider.File. Passed path is the file
or directory being inspected, parent item is a valid QgsDirectoryItem
@@ -45,13 +45,13 @@ Returns combination of flags from QgsDataProvider.DataCapabilities

virtual QgsDataItem *createDataItem( const QString &path, QgsDataItem *parentItem ) = 0 /Factory/;
%Docstring
Create a new instance of :py:class:`QgsDataItem` (or null) for given path and parent item.
Create a new instance of :py:class:`QgsDataItem` (or None) for given path and parent item.
Caller takes responsibility of deleting created items.
%End

virtual QVector<QgsDataItem *> createDataItems( const QString &path, QgsDataItem *parentItem );
%Docstring
Create a vector of instances of :py:class:`QgsDataItem` (or null) for given path and parent item.
Create a vector of instances of :py:class:`QgsDataItem` (or None) for given path and parent item.
Caller takes responsibility of deleting created items.
%End

@@ -737,7 +737,7 @@ Configures appearance of legend. Takes ownership of the passed settings objects.

QgsDataDefinedSizeLegend *dataDefinedSizeLegend() const;
%Docstring
Returns configuration of appearance of legend. Will return null if no configuration has been set.
Returns configuration of appearance of legend. Will return None if no configuration has been set.

.. versionadded:: 3.0
%End
@@ -263,7 +263,7 @@ Retrieves a function from the scope.

:param name: function name

:return: function, or null if matching function could not be found
:return: function, or None if matching function could not be found

.. seealso:: :py:func:`hasFunction`

@@ -498,7 +498,7 @@ scope which contains a matching variable.

:param name: variable name

:return: matching scope containing variable, or null if none found
:return: matching scope containing variable, or None if none found
%End


@@ -508,7 +508,7 @@ Returns the scope at the specified index within the context.

:param index: index of scope

:return: matching scope, or null if none found
:return: matching scope, or None if none found

.. seealso:: :py:func:`lastScope`
%End
@@ -620,7 +620,7 @@ function set.

:param name: function name

:return: function if contained by the context, otherwise null.
:return: function if contained by the context, otherwise None.

.. seealso:: :py:func:`hasFunction`
%End
@@ -180,7 +180,7 @@ Returns the display name of the layer.

virtual QgsDataProvider *dataProvider();
%Docstring
Returns the layer's data provider, it may be null.
Returns the layer's data provider, it may be None.
%End


@@ -1021,14 +1021,14 @@ Returns the format for a URL based layer legend.
%Docstring
Assign a legend controller to the map layer. The object will be responsible for providing legend items.

:param legend: Takes ownership of the object. Can be null pointer
:param legend: Takes ownership of the object. Can be None.

.. versionadded:: 2.6
%End

QgsMapLayerLegend *legend() const;
%Docstring
Can be null.
Can be None.

.. versionadded:: 2.6
%End
@@ -1049,7 +1049,7 @@ Sets 3D renderer for the layer. Takes ownership of the renderer.

QgsAbstract3DRenderer *renderer3D() const;
%Docstring
Returns 3D renderer associated with the layer. May be null.
Returns 3D renderer associated with the layer. May be None.

.. versionadded:: 3.0
%End
@@ -49,7 +49,7 @@ Do the rendering (based on data stored in the class)

virtual QgsFeedback *feedback() const;
%Docstring
Access to feedback object of the layer renderer (may be null)
Access to feedback object of the layer renderer (may be None)

.. versionadded:: 3.0
%End
@@ -180,7 +180,7 @@ Remove a set of ``layers`` from the store.
The specified layers will be removed from the store.
These layers will also be deleted.

:param layers: A list of layers to remove. Null pointers are ignored.
:param layers: A list of layers to remove. None values are ignored.

.. seealso:: :py:func:`takeMapLayer`

@@ -210,7 +210,7 @@ Remove a ``layer`` from the store.

The specified layer will be removed from the store. The layer will also be deleted.

:param layer: The layer to remove. Null pointers are ignored.
:param layer: The layer to remove. None values are ignored.

.. seealso:: :py:func:`takeMapLayer`

@@ -43,7 +43,7 @@ style followed by restoration of the original style (for example, when rendering

QgsMapLayerStyleManager( QgsMapLayer *layer /TransferThis/ );
%Docstring
Construct a style manager associated with a map layer (must not be null).
Construct a style manager associated with a map layer (must not be None).
The style manager will be parented to ``layer``.
%End

@@ -29,12 +29,12 @@ class for creating plugin specific layers

virtual QgsPluginLayer *createLayer() /Factory/;
%Docstring
Returns new layer of this type. Return NULL on error
Returns new layer of this type. Return None on error
%End

virtual QgsPluginLayer *createLayer( const QString &uri ) /Factory/;
%Docstring
Returns new layer of this type, using layer URI (specific to this plugin layer type). Return NULL on error.
Returns new layer of this type, using layer URI (specific to this plugin layer type). Return None on error.

.. versionadded:: 2.10
%End
@@ -86,7 +86,7 @@ Remove plugin layer type and return ``True`` on success

QgsPluginLayerType *pluginLayerType( const QString &typeName );
%Docstring
Returns plugin layer type metadata or NULL if doesn't exist
Returns plugin layer type metadata or None if doesn't exist
%End

QgsPluginLayer *createLayer( const QString &typeName, const QString &uri = QString() ) /Factory/;

0 comments on commit a7ca087

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