File tree 3 files changed +37
-2
lines changed
python/core/auto_generated/layertree
3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,19 @@ Sets the layer's name.
79
79
%End
80
80
81
81
void setUseLayerName( bool use = true );
82
+ %Docstring
83
+ Uses the layer's name if ``use`` is true, or the name manually set if
84
+ false.
85
+
86
+ .. versionadded:: 3.8
87
+ %End
82
88
83
89
bool useLayerName() const;
90
+ %Docstring
91
+ Returns whether the layer's name is used, or the name manually set.
92
+
93
+ .. versionadded:: 3.8
94
+ %End
84
95
85
96
static QgsLayerTreeLayer *readXml( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
86
97
%Docstring
Original file line number Diff line number Diff line change @@ -90,8 +90,17 @@ class CORE_EXPORT QgsLayerTreeLayer : public QgsLayerTreeNode
90
90
*/
91
91
void setName ( const QString &n ) override ;
92
92
93
+ /* *
94
+ * Uses the layer's name if \a use is true, or the name manually set if
95
+ * false.
96
+ * \since QGIS 3.8
97
+ */
93
98
void setUseLayerName ( bool use = true );
94
99
100
+ /* *
101
+ * Returns whether the layer's name is used, or the name manually set.
102
+ * \since QGIS 3.8
103
+ */
95
104
bool useLayerName () const ;
96
105
97
106
/* *
Original file line number Diff line number Diff line change @@ -77,15 +77,30 @@ namespace QgsWms
77
77
~QgsRenderer ();
78
78
79
79
/* *
80
- * Returns the map legend as an image (or NULLPTR in case of error). The caller takes ownership
81
- of the image object*/
80
+ * Returns the map legend as an image (or NULLPTR in case of error). The
81
+ * caller takes ownership of the image object.
82
+ * \param model The layer tree model to use for building the legend
83
+ * \returns the legend as an image
84
+ * \since QGIS 3.8
85
+ */
82
86
QImage *getLegendGraphics ( QgsLayerTreeModel &model );
83
87
88
+ /* *
89
+ * Returns the map legend as an image (or NULLPTR in case of error). The
90
+ * caller takes ownership of the image object.
91
+ * \param nodeModel The node model to use for building the legend
92
+ * \returns the legend as an image
93
+ * \since QGIS 3.8
94
+ */
84
95
QImage *getLegendGraphics ( QgsLayerTreeModelLegendNode &nodeModel );
85
96
86
97
typedef QSet<QString> SymbolSet;
87
98
typedef QHash<QgsVectorLayer *, SymbolSet> HitTest;
88
99
100
+ /* *
101
+ * Returns the hit test according to the current context.
102
+ * \since QGIS 3.8
103
+ */
89
104
HitTest symbols ();
90
105
91
106
/* *
You can’t perform that action at this time.
0 commit comments