Skip to content
Permalink
Browse files

Added version note for scale method in qgsrectangle

  • Loading branch information
timlinux committed Sep 7, 2012
1 parent 9b58fe2 commit 373741e256c9db8f55cb16841388e7609cb6f209
Showing with 3 additions and 1 deletion.
  1. +1 −1 python/core/qgsrectangle.sip
  2. +2 −0 src/core/qgsrectangle.h
@@ -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);
@@ -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;

0 comments on commit 373741e

Please sign in to comment.
You can’t perform that action at this time.