Skip to content

Commit 0912314

Browse files
committedJun 22, 2015
Fix crappy documentation (which I wrote) which came back to bite
me and wasted part of my life I'll never get back...
1 parent 6e73c53 commit 0912314

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed
 

‎python/core/composer/qgscomposeritem.sip

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,17 +240,24 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
240240
*/
241241
void updatePagePos( double newPageWidth, double newPageHeight );
242242

243-
/**Moves the item to a new position (in canvas coordinates)*/
243+
/**Moves the item to a new position (in canvas coordinates)
244+
@param x item position x (mm)
245+
@param y item position y (mm)
246+
@param itemPoint reference point which coincides with specified position
247+
@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.
248+
a page number of 1 corresponds to the first page.
249+
*/
244250
void setItemPosition( double x, double y, ItemPositionMode itemPoint = UpperLeft, int page = -1 );
245251

246252
/**Sets item position and width / height in one go
247-
@param x item position x
248-
@param y item position y
249-
@param width item width
250-
@param height item height
251-
@param itemPoint item position mode
253+
@param x item position x (mm)
254+
@param y item position y (mm)
255+
@param width item width (mm)
256+
@param height item height (mm)
257+
@param itemPoint reference point which coincides with specified position
252258
@param posIncludesFrame set to true if the position and size arguments include the item's frame border
253-
@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
259+
@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.
260+
a page number of 1 corresponds to the first page.
254261
*/
255262
void setItemPosition( double x, double y, double width, double height, ItemPositionMode itemPoint = UpperLeft, bool posIncludesFrame = false, int page = -1 );
256263

‎src/core/composer/qgscomposeritem.h

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,24 @@ class CORE_EXPORT QgsComposerItem: public QgsComposerObject, public QGraphicsRec
192192
*/
193193
void updatePagePos( double newPageWidth, double newPageHeight );
194194

195-
/**Moves the item to a new position (in canvas coordinates)*/
195+
/**Moves the item to a new position (in canvas coordinates)
196+
@param x item position x (mm)
197+
@param y item position y (mm)
198+
@param itemPoint reference point which coincides with specified position
199+
@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.
200+
a page number of 1 corresponds to the first page.
201+
*/
196202
void setItemPosition( double x, double y, ItemPositionMode itemPoint = UpperLeft, int page = -1 );
197203

198204
/**Sets item position and width / height in one go
199-
@param x item position x
200-
@param y item position y
201-
@param width item width
202-
@param height item height
203-
@param itemPoint item position mode
205+
@param x item position x (mm)
206+
@param y item position y (mm)
207+
@param width item width (mm)
208+
@param height item height (mm)
209+
@param itemPoint reference point which coincides with specified position
204210
@param posIncludesFrame set to true if the position and size arguments include the item's frame border
205-
@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
211+
@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.
212+
a page number of 1 corresponds to the first page.
206213
*/
207214
void setItemPosition( double x, double y, double width, double height, ItemPositionMode itemPoint = UpperLeft, bool posIncludesFrame = false, int page = -1 );
208215

0 commit comments

Comments
 (0)
Please sign in to comment.