Skip to content
Permalink
Browse files

comments and comments since

  • Loading branch information
signedav committed Feb 22, 2019
1 parent 7de50a0 commit 3e861635143cb2a7055602bdf369dbcb66fdac25
Showing with 22 additions and 2 deletions.
  1. +18 −0 python/core/auto_generated/qgslegendsettings.sip.in
  2. +4 −2 src/core/qgslegendsettings.h
@@ -192,6 +192,24 @@ Sets the legend map ``scale``.
The ``scale`` value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

.. seealso:: :py:func:`mapScale`
%End

double mapUnitsPerPixel() const;
%Docstring
Returns the factor of map units per pixel for symbols with size given in map units calculated by dpi and mmPerMapUnit

.. seealso:: :py:func:`setMapUnitsPerPixel`

.. versionadded:: 3.6
%End

void setMapUnitsPerPixel( double mapUnitsPerPixel );
%Docstring
Sets the the mmPerMapUnit calculated by ``mapUnitsPerPixel`` mostly taken from the map settings.

.. seealso:: :py:func:`mapUnitsPerPixel`

.. versionadded:: 3.6
%End

int dpi() const;
@@ -179,14 +179,16 @@ class CORE_EXPORT QgsLegendSettings
void setMapScale( double scale ) { mMapScale = scale; }

/**
* Returns the factor of map units per pixel for symbols with size given in map units calculated by mDpi and mMmPerMapUnit
* Returns the factor of map units per pixel for symbols with size given in map units calculated by dpi and mmPerMapUnit
* \see setMapUnitsPerPixel()
* \since QGIS 3.6
*/
double mapUnitsPerPixel() const;

/**
* Sets the the mMmPerMapUnit calculated by \a mapUnitsPerPixel mostly taken from the map settings.
* Sets the the mmPerMapUnit calculated by \a mapUnitsPerPixel mostly taken from the map settings.
* \see mapUnitsPerPixel()
* \since QGIS 3.6
*/
void setMapUnitsPerPixel( double mapUnitsPerPixel );

0 comments on commit 3e86163

Please sign in to comment.
You can’t perform that action at this time.