Skip to content

Commit

Permalink
Added version note for scale method in qgsrectangle
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Sep 7, 2012
1 parent 9b58fe2 commit 373741e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/core/qgsrectangle.sip
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class QgsRectangle
//! Scale the rectangle around its center point
void scale(double, const QgsPoint *c =0);
//! Expand the rectangle to support zoom out scaling
// @deprecated use scale instead
// @deprecated in 1.9 use scale instead
void expand(double, const QgsPoint *c = 0) /Deprecated/;
//! return the intersection with the given rectangle
QgsRectangle intersect(const QgsRectangle *rect);
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsrectangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class CORE_EXPORT QgsRectangle
//! Center point of the rectangle
QgsPoint center() const;
//! Scale the rectangle around its center point
// @note added in version 1.9
void scale( double scaleFactor, const QgsPoint *c = 0 );
//! Deprecated in 1.9, use scale instead
Q_DECL_DEPRECATED void expand( double scaleFactor, const QgsPoint *c = 0 ) { return scale( scaleFactor * 2.0, c ); }
//! return the intersection with the given rectangle
QgsRectangle intersect( const QgsRectangle *rect ) const;
Expand Down

0 comments on commit 373741e

Please sign in to comment.