Skip to content

Commit 3e86163

Browse files
committed
comments and comments since
1 parent 7de50a0 commit 3e86163

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

python/core/auto_generated/qgslegendsettings.sip.in

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,24 @@ Sets the legend map ``scale``.
192192
The ``scale`` value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
193193

194194
.. seealso:: :py:func:`mapScale`
195+
%End
196+
197+
double mapUnitsPerPixel() const;
198+
%Docstring
199+
Returns the factor of map units per pixel for symbols with size given in map units calculated by dpi and mmPerMapUnit
200+
201+
.. seealso:: :py:func:`setMapUnitsPerPixel`
202+
203+
.. versionadded:: 3.6
204+
%End
205+
206+
void setMapUnitsPerPixel( double mapUnitsPerPixel );
207+
%Docstring
208+
Sets the the mmPerMapUnit calculated by ``mapUnitsPerPixel`` mostly taken from the map settings.
209+
210+
.. seealso:: :py:func:`mapUnitsPerPixel`
211+
212+
.. versionadded:: 3.6
195213
%End
196214

197215
int dpi() const;

src/core/qgslegendsettings.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,16 @@ class CORE_EXPORT QgsLegendSettings
179179
void setMapScale( double scale ) { mMapScale = scale; }
180180

181181
/**
182-
* Returns the factor of map units per pixel for symbols with size given in map units calculated by mDpi and mMmPerMapUnit
182+
* Returns the factor of map units per pixel for symbols with size given in map units calculated by dpi and mmPerMapUnit
183183
* \see setMapUnitsPerPixel()
184+
* \since QGIS 3.6
184185
*/
185186
double mapUnitsPerPixel() const;
186187

187188
/**
188-
* Sets the the mMmPerMapUnit calculated by \a mapUnitsPerPixel mostly taken from the map settings.
189+
* Sets the the mmPerMapUnit calculated by \a mapUnitsPerPixel mostly taken from the map settings.
189190
* \see mapUnitsPerPixel()
191+
* \since QGIS 3.6
190192
*/
191193
void setMapUnitsPerPixel( double mapUnitsPerPixel );
192194

0 commit comments

Comments
 (0)