File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
python/core/auto_generated Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,24 @@ Sets the legend map ``scale``.
192
192
The ``scale`` value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
193
193
194
194
.. 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
195
213
%End
196
214
197
215
int dpi() const;
Original file line number Diff line number Diff line change @@ -179,14 +179,16 @@ class CORE_EXPORT QgsLegendSettings
179
179
void setMapScale ( double scale ) { mMapScale = scale; }
180
180
181
181
/* *
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
183
183
* \see setMapUnitsPerPixel()
184
+ * \since QGIS 3.6
184
185
*/
185
186
double mapUnitsPerPixel () const ;
186
187
187
188
/* *
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.
189
190
* \see mapUnitsPerPixel()
191
+ * \since QGIS 3.6
190
192
*/
191
193
void setMapUnitsPerPixel ( double mapUnitsPerPixel );
192
194
You can’t perform that action at this time.
0 commit comments