Skip to content

Commit

Permalink
Specify that QgsMapCanvasItem::setRect/rect use map units
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Jan 2, 2015
1 parent 2f75c3c commit 7b6f28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmapcanvasitem.h
Expand Up @@ -65,10 +65,10 @@ class GUI_EXPORT QgsMapCanvasItem : public QGraphicsItem
//! @deprecated since v2.4 - not called by QgsMapCanvas anymore
Q_DECL_DEPRECATED void setPanningOffset( const QPoint& point );

//! 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
Expand Down

0 comments on commit 7b6f28c

Please sign in to comment.