17#include "moc_qgscreateannotationitemmaptool.cpp"
24 , mMapCanvas( canvas )
26 Q_UNUSED( cadDockWidget )
31 return mCreatedItem.release();
46 mCreatedItem.reset( item );
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
Represents a map layer containing a set of georeferenced annotations, e.g.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsMapLayer * currentLayer()
returns current layer (set by legend widget)
static QgsProject * instance()
Returns the QgsProject singleton instance.
QgsAnnotationLayer * mainAnnotationLayer()
Returns the main annotation layer associated with the project.