Skip to content
Permalink
Browse files
Update sip bindings for QgsMapCanvasItem (after const-correctness)
  • Loading branch information
Sandro Santilli committed Jan 3, 2015
1 parent 6f8f66e commit 4d449f17cb305323c4de9f4cd89c8a2e00c33ea6
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/gui/qgsmapcanvasitem.sip
@@ -41,17 +41,17 @@ class QgsMapCanvasItem : QGraphicsItem
//! @deprecated since v2.4 - not called by QgsMapCanvas anymore
void setPanningOffset( const QPoint& point ) /Deprecated/;

//! returns canvas item rectangle
//! returns canvas item rectangle in map units
QgsRectangle rect() const;

//! sets canvas item rectangle
//! sets canvas item rectangle in map units
void setRect( const QgsRectangle& r );

//! transformation from screen coordinates to map coordinates
QgsPoint toMapCoordinates( const QPoint& point );
QgsPoint toMapCoordinates( const QPoint& point ) const;

//! transformation from map coordinates to screen coordinates
QPointF toCanvasCoordinates( const QgsPoint& point );
QPointF toCanvasCoordinates( const QgsPoint& point ) const;
};


1 comment on commit 4d449f1

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on 4d449f1 Jan 3, 2015

@strk thanks Sandro!

Please sign in to comment.