Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[composer] Picture item header improvements (sponsored by City of Ust…
…er, Switzerland)
  • Loading branch information
nyalldawson committed Apr 28, 2014
1 parent 963ae70 commit 85c2e14
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/core/composer/qgscomposerpicture.h
Expand Up @@ -93,9 +93,13 @@ class CORE_EXPORT QgsComposerPicture: public QgsComposerItem
/**True if the rotation is taken from a map item*/
bool useRotationMap() const {return mRotationMap;}

/**Returns the resize mode used for drawing the picture within the composer item
*/
ResizeMode resizeMode() const { return mResizeMode;};
/**Returns the resize mode used for drawing the picture within the composer item's
* frame.
* @returns resize mode of picture
* @note added in 2.3
* @see setResizeMode
*/
ResizeMode resizeMode() const { return mResizeMode;}

/**Calculates width and hight of the picture (in mm) such that it fits into the item frame with the given rotation
* @deprecated Use bool QgsComposerItem::imageSizeConsideringRotation( double& width, double& height, double rotation )
Expand Down Expand Up @@ -127,8 +131,11 @@ class CORE_EXPORT QgsComposerPicture: public QgsComposerItem
@note this function was added in version 2.1*/
virtual void setPictureRotation( double r );

/**Sets the resize mode used for drawing the picture within the item bounds
@note this function was added in version 2.1*/
/**Sets the resize mode used for drawing the picture within the item bounds.
* @param mode ResizeMode to use for image file
* @note added in 2.3
* @see resizeMode
*/
virtual void setResizeMode( ResizeMode mode );

signals:
Expand Down

0 comments on commit 85c2e14

Please sign in to comment.