Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redundant angle methods for QgsGradientFillSymbolLayerV2
- Loading branch information
1 parent
0e35495
commit ca4a60a
Showing
3 changed files
with
0 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,10 +246,6 @@ class CORE_EXPORT QgsGradientFillSymbolLayerV2 : public QgsFillSymbolLayerV2 | |
void setReferencePoint2IsCentroid( bool isCentroid ) { mReferencePoint2IsCentroid = isCentroid; } | ||
bool referencePoint2IsCentroid() const { return mReferencePoint2IsCentroid; } | ||
|
||
/**Rotation angle for gradient fill. Can be used to rotate a gradient around its centre point*/ | ||
void setAngle( double angle ) { mAngle = angle; } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nyalldawson
Author
Collaborator
|
||
double angle() const { return mAngle; } | ||
|
||
/**Offset for gradient fill*/ | ||
void setOffset( QPointF offset ) { mOffset = offset; } | ||
QPointF offset() const { return mOffset; } | ||
|
@@ -282,7 +278,6 @@ class CORE_EXPORT QgsGradientFillSymbolLayerV2 : public QgsFillSymbolLayerV2 | |
bool mReferencePoint1IsCentroid; | ||
QPointF mReferencePoint2; | ||
bool mReferencePoint2IsCentroid; | ||
double mAngle; | ||
|
||
QPointF mOffset; | ||
QgsSymbolV2::OutputUnit mOffsetUnit; | ||
|
Does that break the API? Could it be forwarded to the redundant method instead?