mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
20 lines
573 B
Plaintext
20 lines
573 B
Plaintext
class QgsTextAnnotationItem: QgsAnnotationItem
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgstextannotationitem.h>
|
|
%End
|
|
public:
|
|
QgsTextAnnotationItem( QgsMapCanvas* canvas /TransferThis/ );
|
|
~QgsTextAnnotationItem();
|
|
|
|
/**Returns document (caller takes ownership)*/
|
|
QTextDocument* document() const /Factory/;
|
|
/**Sets document (does not take ownership)*/
|
|
void setDocument( const QTextDocument* doc );
|
|
|
|
void writeXML( QDomDocument& doc ) const;
|
|
void readXML( const QDomDocument& doc, const QDomElement& itemElem );
|
|
|
|
void paint( QPainter* painter );
|
|
};
|