mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Transfer ownership of item
This commit is contained in:
parent
f177228f49
commit
212cd20791
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user