@@ -84,13 +84,17 @@ class CORE_EXPORT QgsLayerTreeModelLegendNode : public QObject
84
84
85
85
/* *
86
86
* Draws symbol on the left side of the item
87
+ * @param settings Legend layout configuration
88
+ * @param ctx Context for rendering - may be null if only doing layout without actual rendering
87
89
* @param itemHeight Minimal height of the legend item - used for correct positioning when rendering
88
90
* @return Real size of the symbol (may be bigger than "normal" symbol size from settings)
89
91
*/
90
92
virtual QSizeF drawSymbol ( const QgsLegendSettings& settings, ItemContext* ctx, double itemHeight ) const ;
91
93
92
94
/* *
93
95
* Draws label on the right side of the item
96
+ * @param settings Legend layout configuration
97
+ * @param ctx Context for rendering - may be null if only doing layout without actual rendering
94
98
* @param symbolSize Real size of the associated symbol - used for correct positioning when rendering
95
99
* @return Size of the label (may span multiple lines)
96
100
*/
@@ -124,8 +128,6 @@ class CORE_EXPORT QgsSymbolV2LegendNode : public QgsLayerTreeModelLegendNode
124
128
virtual QVariant data ( int role ) const ;
125
129
virtual bool setData ( const QVariant& value, int role );
126
130
127
- /* * Draws a symbol at the current y position and returns the new x position. Returns real symbol height, because for points,
128
- it is possible that it differs from mSymbolHeight */
129
131
QSizeF drawSymbol ( const QgsLegendSettings& settings, ItemContext* ctx, double itemHeight ) const ;
130
132
131
133
virtual void setEmbeddedInParent ( bool embedded );
0 commit comments