Skip to content

Commit

Permalink
Fix crappy documentation (which I wrote) which came back to bite
Browse files Browse the repository at this point in the history
me and wasted part of my life I'll never get back...
  • Loading branch information
nyalldawson committed Jun 22, 2015
1 parent 6e73c53 commit 0912314
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
21 changes: 14 additions & 7 deletions python/core/composer/qgscomposeritem.sip
Expand Up @@ -240,17 +240,24 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
*/
void updatePagePos( double newPageWidth, double newPageHeight );

/**Moves the item to a new position (in canvas coordinates)*/
/**Moves the item to a new position (in canvas coordinates)
@param x item position x (mm)
@param y item position y (mm)
@param itemPoint reference point which coincides with specified position
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
a page number of 1 corresponds to the first page.
*/
void setItemPosition( double x, double y, ItemPositionMode itemPoint = UpperLeft, int page = -1 );

/**Sets item position and width / height in one go
@param x item position x
@param y item position y
@param width item width
@param height item height
@param itemPoint item position mode
@param x item position x (mm)
@param y item position y (mm)
@param width item width (mm)
@param height item height (mm)
@param itemPoint reference point which coincides with specified position
@param posIncludesFrame set to true if the position and size arguments include the item's frame border
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
a page number of 1 corresponds to the first page.
*/
void setItemPosition( double x, double y, double width, double height, ItemPositionMode itemPoint = UpperLeft, bool posIncludesFrame = false, int page = -1 );

Expand Down
21 changes: 14 additions & 7 deletions src/core/composer/qgscomposeritem.h
Expand Up @@ -192,17 +192,24 @@ class CORE_EXPORT QgsComposerItem: public QgsComposerObject, public QGraphicsRec
*/
void updatePagePos( double newPageWidth, double newPageHeight );

/**Moves the item to a new position (in canvas coordinates)*/
/**Moves the item to a new position (in canvas coordinates)
@param x item position x (mm)
@param y item position y (mm)
@param itemPoint reference point which coincides with specified position
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
a page number of 1 corresponds to the first page.
*/
void setItemPosition( double x, double y, ItemPositionMode itemPoint = UpperLeft, int page = -1 );

/**Sets item position and width / height in one go
@param x item position x
@param y item position y
@param width item width
@param height item height
@param itemPoint item position mode
@param x item position x (mm)
@param y item position y (mm)
@param width item width (mm)
@param height item height (mm)
@param itemPoint reference point which coincides with specified position
@param posIncludesFrame set to true if the position and size arguments include the item's frame border
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates
@param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
a page number of 1 corresponds to the first page.
*/
void setItemPosition( double x, double y, double width, double height, ItemPositionMode itemPoint = UpperLeft, bool posIncludesFrame = false, int page = -1 );

Expand Down

0 comments on commit 0912314

Please sign in to comment.