Skip to content

Commit

Permalink
Updated Python bindings for lable and composeritem
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 authored and mhugent committed Jul 4, 2011
1 parent 82d8cff commit 21d9226
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion python/core/qgscomposeritem.sip
Expand Up @@ -147,7 +147,7 @@ class QgsComposerItem: QObject, QGraphicsRectItem

/** \brief Set selected, selected item should be highlighted */
virtual void setSelected( bool s );

sipCppRet
/** \brief Is selected */
virtual bool selected();

Expand Down Expand Up @@ -256,6 +256,16 @@ class QgsComposerItem: QObject, QGraphicsRectItem
/**Updates item, with the possibility to do custom update for subclasses*/
virtual void updateItem();

/**Get label identification name
@note this method was added in version 1.7*/
QString id() const;

/**Set label identification name
@note this method was added in version 1.7
This method was moved from qgscomposerlabel so that every object can have a
id (NathanW)*/
void setId( const QString& id );

public slots:
virtual void setRotation( double r);

Expand Down
8 changes: 0 additions & 8 deletions python/core/qgscomposerlabel.sip
Expand Up @@ -48,12 +48,4 @@ class QgsComposerLabel: QgsComposerItem
* @param node is Dom node corresponding to 'ComposerLabel' tag
*/
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );

/**Get label identification number
@note this method was added in version 1.7*/
QString id() const;

/**Set label identification number
@note this method was added in version 1.7*/
void setId( const QString& id );
};

0 comments on commit 21d9226

Please sign in to comment.