Skip to content

Commit

Permalink
Merge pull request #1663 from timlinux/papercuts
Browse files Browse the repository at this point in the history
Add missing sip bindings for fill and border colours of rubber band.
  • Loading branch information
timlinux committed Oct 27, 2014
2 parents 83d070e + 531474d commit c21edd0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions python/gui/qgsrubberband.sip
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ class QgsRubberBand: QgsMapCanvasItem
*/
void setColor( const QColor & color );

/**
* Set the fill color for the rubberband
* @param color The color used to render this rubberband
* @note Added in 2.6
*/
void setFillColor( const QColor & color );

/**
* Set the border color for the rubberband
* @param color The color used to render this rubberband
* @note Added in 2.6
*/
void setBorderColor( const QColor & color );

/**
* Set the width of the line. Outline width for polygon.
* @param width The width for any lines painted for this rubberband
Expand Down
4 changes: 3 additions & 1 deletion src/gui/qgsrubberband.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
void setColor( const QColor & color );

/**
* Set the file color for the rubberband
* Set the fill color for the rubberband
* @param color The color used to render this rubberband
* @note Added in 2.6
*/
void setFillColor( const QColor & color );

/**
* Set the border color for the rubberband
* @param color The color used to render this rubberband
* @note Added in 2.6
*/
void setBorderColor( const QColor & color );

Expand Down

0 comments on commit c21edd0

Please sign in to comment.