Skip to content
Permalink
Browse files

[composer] Picture item header improvements (sponsored by City of Ust…

…er, Switzerland)
  • Loading branch information
nyalldawson committed Apr 28, 2014
1 parent 963ae70 commit 85c2e14288ce15319a94bf6891c03dce5d3c1608
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/core/composer/qgscomposerpicture.h
@@ -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 )
@@ -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:

0 comments on commit 85c2e14

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