Skip to content
Permalink
Browse files

Updated Python bindings for lable and composeritem

  • Loading branch information
NathanW2 authored and mhugent committed Jul 4, 2011
1 parent 82d8cff commit 21d9226171af1d361626426ca8d622951ec8ab32
Showing with 11 additions and 9 deletions.
  1. +11 −1 python/core/qgscomposeritem.sip
  2. +0 −8 python/core/qgscomposerlabel.sip
@@ -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();

@@ -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);

@@ -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.
You can’t perform that action at this time.