Transfer ownership of item

This commit is contained in:
Matthias Kuhn 2018-08-26 09:20:58 +02:00
parent f177228f49
commit 212cd20791
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ Shows a grid on the map canvas given a spatial resolution.
%End
public:
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas /TransferThis/ );
%Docstring
Will automatically be added to the ``mapCanvas``.
%End

View File

@ -39,7 +39,7 @@ class GUI_EXPORT QgsSnapToGridCanvasItem : public QObject, public QgsMapCanvasIt
/**
* Will automatically be added to the \a mapCanvas.
*/
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas SIP_TRANSFERTHIS );
void paint( QPainter *painter ) override;