Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent f186c11 commit 813ed5e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
12 changes: 12 additions & 0 deletions python/core/symbology-ng/qgsellipsesymbollayerv2.sip
Expand Up @@ -51,7 +51,17 @@ class QgsEllipseSymbolLayerV2 : QgsMarkerSymbolLayerV2
void setOutlineColor( const QColor& c );
QColor outlineColor() const;

/** Sets the units for the symbol's width.
* @param unit symbol units
* @see symbolWidthUnit()
* @see setSymbolHeightUnit()
*/
void setSymbolWidthUnit( QgsUnitTypes::RenderUnit unit );

/** Returns the units for the symbol's width.
* @see setSymbolWidthUnit()
* @see symbolHeightUnit()
*/
QgsUnitTypes::RenderUnit symbolWidthUnit() const;

void setSymbolWidthMapUnitScale( const QgsMapUnitScale& scale);
Expand All @@ -60,11 +70,13 @@ class QgsEllipseSymbolLayerV2 : QgsMarkerSymbolLayerV2
/** Sets the units for the symbol's height.
* @param unit symbol units
* @see symbolHeightUnit()
* @see setSymbolWidthUnit()
*/
void setSymbolHeightUnit( QgsUnitTypes::RenderUnit unit );

/** Returns the units for the symbol's height.
* @see setSymbolHeightUnit()
* @see symbolWidthUnit()
*/
QgsUnitTypes::RenderUnit symbolHeightUnit() const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/symbology-ng/qgssymbolv2.sip
Expand Up @@ -155,7 +155,7 @@ class QgsSymbolV2
* @param unit output units
* @see outputUnit()
*/
void setOutputUnit( QgsUnitTypes::RenderUnit u );
void setOutputUnit( QgsUnitTypes::RenderUnit unit );

QgsMapUnitScale mapUnitScale() const;
void setMapUnitScale( const QgsMapUnitScale& scale );
Expand Down
12 changes: 12 additions & 0 deletions src/core/symbology-ng/qgsellipsesymbollayerv2.h
Expand Up @@ -73,7 +73,17 @@ class CORE_EXPORT QgsEllipseSymbolLayerV2: public QgsMarkerSymbolLayerV2
void setOutlineColor( const QColor& c ) override { mOutlineColor = c; }
QColor outlineColor() const override { return mOutlineColor; }

/** Sets the units for the symbol's width.
* @param unit symbol units
* @see symbolWidthUnit()
* @see setSymbolHeightUnit()
*/
void setSymbolWidthUnit( QgsUnitTypes::RenderUnit unit ) { mSymbolWidthUnit = unit; }

/** Returns the units for the symbol's width.
* @see setSymbolWidthUnit()
* @see symbolHeightUnit()
*/
QgsUnitTypes::RenderUnit symbolWidthUnit() const { return mSymbolWidthUnit; }

void setSymbolWidthMapUnitScale( const QgsMapUnitScale& scale ) { mSymbolWidthMapUnitScale = scale; }
Expand All @@ -82,11 +92,13 @@ class CORE_EXPORT QgsEllipseSymbolLayerV2: public QgsMarkerSymbolLayerV2
/** Sets the units for the symbol's height.
* @param unit symbol units
* @see symbolHeightUnit()
* @see setSymbolWidthUnit()
*/
void setSymbolHeightUnit( QgsUnitTypes::RenderUnit unit ) { mSymbolHeightUnit = unit; }

/** Returns the units for the symbol's height.
* @see setSymbolHeightUnit()
* @see symbolWidthUnit()
*/
QgsUnitTypes::RenderUnit symbolHeightUnit() const { return mSymbolHeightUnit; }

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgssymbolv2.h
Expand Up @@ -193,7 +193,7 @@ class CORE_EXPORT QgsSymbolV2
* @param unit output units
* @see outputUnit()
*/
void setOutputUnit( QgsUnitTypes::RenderUnit u );
void setOutputUnit( QgsUnitTypes::RenderUnit unit );

QgsMapUnitScale mapUnitScale() const;
void setMapUnitScale( const QgsMapUnitScale& scale );
Expand Down

0 comments on commit 813ed5e

Please sign in to comment.