Skip to content

Commit 1317220

Browse files
committed
Update qgsmapcanvas.sip
1 parent f815ebc commit 1317220

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/gui/qgsmapcanvas.sip

+4
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ class QgsMapCanvas : QGraphicsView
543543
//! called when panning is in action, reset indicates end of panning
544544
void moveCanvasContents( bool reset = false );
545545

546+
//! Zooms to feature extent. Adds a small margin around the extent
547+
//! and does a pan if rect is empty (point extent)
548+
void zoomToFeatureExtent( QgsRectangle& rect );
549+
546550
//! called on resize or changed extent to notify canvas items to change their rectangle
547551
void updateCanvasItemPositions();
548552

0 commit comments

Comments
 (0)