Skip to content

Commit 9857119

Browse files
committed
SIP bindings for point rubberband.
1 parent 91d8aaf commit 9857119

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/gui/qgsrubberband.sip

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ class QgsRubberBand: QgsMapCanvasItem
55
%End
66

77
public:
8-
QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon = false );
8+
QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, QGis::GeometryType geometryType = QGis::Line );
9+
QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon );
910
~QgsRubberBand();
1011

1112
void setColor( const QColor & color );
1213
void setWidth( int width );
1314

14-
void reset( bool isPolygon = false );
15+
void reset( QGis::GeometryType geometryType = QGis::Line );
16+
void reset( bool isPolygon );
1517

1618
//! Add point to rubberband and update canvas
1719
//! If adding more points consider using update=false for better performance

0 commit comments

Comments
 (0)