mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Updated Python bindings for lable and composeritem
This commit is contained in:
parent
82d8cffb82
commit
21d9226171
@ -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 );
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user