@@ -41,7 +41,7 @@ whether to allow changes to the layer tree.
41
41
42
42
explicit QgsLayerTreeModel( QgsLayerTree *rootNode, QObject *parent /TransferThis/ = 0 );
43
43
%Docstring
44
- Construct a new tree model with given layer tree (root node must not be null pointer ).
44
+ Construct a new tree model with given layer tree (root node must not be None ).
45
45
The root node is not transferred by the model.
46
46
%End
47
47
@@ -112,7 +112,7 @@ Check whether a flag is enabled
112
112
QgsLayerTreeNode *index2node( const QModelIndex &index ) const;
113
113
%Docstring
114
114
Returns layer tree node for given index. Returns root node for invalid index.
115
- Returns null pointer if index does not refer to a layer tree node (e.g. it is a legend node)
115
+ Returns None if index does not refer to a layer tree node (e.g. it is a legend node)
116
116
%End
117
117
QModelIndex node2index( QgsLayerTreeNode *node ) const;
118
118
%Docstring
@@ -128,7 +128,7 @@ If ``skipInternal`` is ``True``, a node is included in the output list only if n
128
128
129
129
static QgsLayerTreeModelLegendNode *index2legendNode( const QModelIndex &index );
130
130
%Docstring
131
- Returns legend node for given index. Returns null for invalid index
131
+ Returns legend node for given index. Returns None for invalid index
132
132
133
133
.. versionadded:: 2.6
134
134
%End
@@ -186,7 +186,7 @@ and rule key.
186
186
187
187
QgsLayerTree *rootGroup() const;
188
188
%Docstring
189
- Returns pointer to the root node of the layer tree. Always a non-null pointer .
189
+ Returns pointer to the root node of the layer tree. Always a non None value .
190
190
%End
191
191
192
192
void setRootGroup( QgsLayerTree *newRootGroup );
@@ -254,7 +254,7 @@ A scale <= 0 indicates that no scale filtering is being performed.
254
254
void setLegendFilterByMap( const QgsMapSettings *settings );
255
255
%Docstring
256
256
Force only display of legend nodes which are valid for given map settings.
257
- Setting null pointer or invalid map settings will disable the functionality.
257
+ Setting None or invalid map settings will disable the functionality.
258
258
Ownership of map settings pointer does not change, a copy is made.
259
259
260
260
.. versionadded:: 2.6
@@ -264,7 +264,7 @@ Ownership of map settings pointer does not change, a copy is made.
264
264
%Docstring
265
265
Filter display of legend nodes for given map settings
266
266
267
- :param settings: Map settings. Setting a null pointer or invalid settings will disable any filter. Ownership is not changed, a copy is made
267
+ :param settings: Map settings. Setting a None or invalid settings will disable any filter. Ownership is not changed, a copy is made
268
268
:param useExtent: Whether to use the extent of the map settings as a first spatial filter on legend nodes
269
269
:param polygon: If not empty, this polygon will be used instead of the map extent to filter legend nodes
270
270
:param useExpressions: Whether to use legend node filter expressions
@@ -274,7 +274,7 @@ Filter display of legend nodes for given map settings
274
274
275
275
const QgsMapSettings *legendFilterMapSettings() const;
276
276
%Docstring
277
- Returns the current map settings used for the current legend filter (or null if none is enabled)
277
+ Returns the current map settings used for the current legend filter (or None if none is enabled)
278
278
279
279
.. versionadded:: 2.14
280
280
%End
@@ -289,7 +289,7 @@ so that legend nodes that use map units can be scaled currectly
289
289
290
290
void legendMapViewData( double *mapUnitsPerPixel /Out/, int *dpi /Out/, double *scale /Out/ ) const;
291
291
%Docstring
292
- Gets hints about map view - to be used in legend nodes. Arguments that are not null will receive values.
292
+ Gets hints about map view - to be used in legend nodes. Arguments that are not None will receive values.
293
293
If there are no valid map view data (from previous call to setLegendMapViewData()), returned values are zeros.
294
294
295
295
.. versionadded:: 2.6
0 commit comments