Skip to content

Commit

Permalink
Update sip bindings for QgsMapCanvasItem (after const-correctness)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Jan 3, 2015
1 parent 6f8f66e commit 4d449f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/gui/qgsmapcanvasitem.sip
Expand Up @@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@strk thanks Sandro!

Please sign in to comment.