Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1695 from nyalldawson/fix_api
Browse files Browse the repository at this point in the history
Fix incorrect cast to double in shapeburst fill header
  • Loading branch information
jef-n committed Nov 19, 2014
2 parents 256b265 + c8ad99b commit b8ff575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions python/core/symbology-ng/qgsfillsymbollayerv2.sip
Expand Up @@ -278,14 +278,14 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
* @see useWholeShape
* @see setMaxDistance
*/
void setUseWholeShape( double useWholeShape );
void setUseWholeShape( bool useWholeShape );
/**Returns whether the shapeburst fill is set to cover the entire shape.
* @returns True if shapeburst fill will cover the entire shape. If false, shapeburst is drawn to a distance of maxDistance from the polygon's boundary.
* @note added in 2.3
* @see setUseWholeShape
* @see maxDistance
*/
double useWholeShape() const;
bool useWholeShape() const;

/**Sets the maximum distance to shape inside of the shape from the polygon's boundary.
* @param maxDistance distance from boundary to shade. setUseWholeShape must be set to false for this parameter to take effect. Distance unit is controlled by setDistanceUnit.
Expand Down Expand Up @@ -379,13 +379,13 @@ class QgsShapeburstFillSymbolLayerV2 : QgsFillSymbolLayerV2
* @note added in 2.3
* @see ignoreRings
*/
void setIgnoreRings( double ignoreRings );
void setIgnoreRings( bool ignoreRings );
/**Returns whether the shapeburst fill is set to ignore polygon interior rings.
* @returns True if the shapeburst fill will ignore interior rings when calculating buffered shading.
* @note added in 2.3
* @see setIgnoreRings
*/
double ignoreRings() const;
bool ignoreRings() const;

/**Sets the offset for the shapeburst fill.
* @param offset QPointF indicating the horizontal/vertical offset amount
Expand Down
8 changes: 4 additions & 4 deletions src/core/symbology-ng/qgsfillsymbollayerv2.h
Expand Up @@ -359,14 +359,14 @@ class CORE_EXPORT QgsShapeburstFillSymbolLayerV2 : public QgsFillSymbolLayerV2
* @see useWholeShape
* @see setMaxDistance
*/
void setUseWholeShape( double useWholeShape ) { mUseWholeShape = useWholeShape; }
void setUseWholeShape( bool useWholeShape ) { mUseWholeShape = useWholeShape; }
/**Returns whether the shapeburst fill is set to cover the entire shape.
* @returns True if shapeburst fill will cover the entire shape. If false, shapeburst is drawn to a distance of maxDistance from the polygon's boundary.
* @note added in 2.3
* @see setUseWholeShape
* @see maxDistance
*/
double useWholeShape() const { return mUseWholeShape; }
bool useWholeShape() const { return mUseWholeShape; }

/**Sets the maximum distance to shape inside of the shape from the polygon's boundary.
* @param maxDistance distance from boundary to shade. setUseWholeShape must be set to false for this parameter to take effect. Distance unit is controlled by setDistanceUnit.
Expand Down Expand Up @@ -460,13 +460,13 @@ class CORE_EXPORT QgsShapeburstFillSymbolLayerV2 : public QgsFillSymbolLayerV2
* @note added in 2.3
* @see ignoreRings
*/
void setIgnoreRings( double ignoreRings ) { mIgnoreRings = ignoreRings; }
void setIgnoreRings( bool ignoreRings ) { mIgnoreRings = ignoreRings; }
/**Returns whether the shapeburst fill is set to ignore polygon interior rings.
* @returns True if the shapeburst fill will ignore interior rings when calculating buffered shading.
* @note added in 2.3
* @see setIgnoreRings
*/
double ignoreRings() const { return mIgnoreRings; }
bool ignoreRings() const { return mIgnoreRings; }

/**Sets the offset for the shapeburst fill.
* @param offset QPointF indicating the horizontal/vertical offset amount
Expand Down

0 comments on commit b8ff575

Please sign in to comment.