Skip to content

Commit c21edd0

Browse files
committedOct 27, 2014
Merge pull request #1663 from timlinux/papercuts
Add missing sip bindings for fill and border colours of rubber band.
2 parents 83d070e + 531474d commit c21edd0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
 

‎python/gui/qgsrubberband.sip‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ class QgsRubberBand: QgsMapCanvasItem
5757
*/
5858
void setColor( const QColor & color );
5959

60+
/**
61+
* Set the fill color for the rubberband
62+
* @param color The color used to render this rubberband
63+
* @note Added in 2.6
64+
*/
65+
void setFillColor( const QColor & color );
66+
67+
/**
68+
* Set the border color for the rubberband
69+
* @param color The color used to render this rubberband
70+
* @note Added in 2.6
71+
*/
72+
void setBorderColor( const QColor & color );
73+
6074
/**
6175
* Set the width of the line. Outline width for polygon.
6276
* @param width The width for any lines painted for this rubberband

‎src/gui/qgsrubberband.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,16 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
8686
void setColor( const QColor & color );
8787

8888
/**
89-
* Set the file color for the rubberband
89+
* Set the fill color for the rubberband
9090
* @param color The color used to render this rubberband
91+
* @note Added in 2.6
9192
*/
9293
void setFillColor( const QColor & color );
9394

9495
/**
9596
* Set the border color for the rubberband
9697
* @param color The color used to render this rubberband
98+
* @note Added in 2.6
9799
*/
98100
void setBorderColor( const QColor & color );
99101

0 commit comments

Comments
 (0)
Please sign in to comment.