Skip to content

Commit

Permalink
Added setFillColor and setBorderColor for rubber band to the python API
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Oct 27, 2014
1 parent 0fa4ce3 commit 84c429d
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 84c429d

Please sign in to comment.