Skip to content


Added bindings for getting an item by id and a composerhtml instance …
Browse files Browse the repository at this point in the history
…that belongs to an item.
  • Loading branch information
timlinux committed Sep 19, 2012
1 parent 8f3027b commit 8fd7805
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/core/qgscomposition.sip
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ class QgsComposition: QGraphicsScene
@return id or 0 pointer if the composer map item does not exist*/
const QgsComposerMap* getComposerMapById( int id ) const;

/*Returns the composer html with specified id (a string as named in the
composer user interface item properties).
@note Added in QGIS 2.0
@param id - A QString representing the id of the item.
@return QgsComposerHtml pointer or 0 pointer if no such item exists.
const QgsComposerHtml* getComposerHtmlByItem( QgsComposerItem *item ) const;

/**Returns a composer item given its text identifier.
@note added in 2.0
@param theId - A QString representing the identifier of the item to
@return QgsComposerItem pointer or 0 pointer if no such item exists.
const QgsComposerItem* getComposerItemById( QString theId ) const;

int printResolution() const;
void setPrintResolution( int dpi );

Expand Down

0 comments on commit 8fd7805

Please sign in to comment.