Skip to content

Commit

Permalink
comments and comments since
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Feb 25, 2019
1 parent 7de50a0 commit 3e86163
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions python/core/auto_generated/qgslegendsettings.sip.in
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/core/qgslegendsettings.h
Expand Up @@ -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 );

Expand Down

0 comments on commit 3e86163

Please sign in to comment.