Solved bugs with double deletion of map canvas items in Python bindings.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6909 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2007-04-23 14:58:15 +00:00
parent 7e367f30b8
commit c825b86f0e
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class QgsMapCanvasItem : QGraphicsItem
protected:
//! protected constructor: cannot be constructed directly
QgsMapCanvasItem(QgsMapCanvas* mapCanvas);
QgsMapCanvasItem(QgsMapCanvas* mapCanvas /TransferThis/);
virtual ~QgsMapCanvasItem();

View File

@ -6,7 +6,7 @@ class QgsRubberBand: QgsMapCanvasItem
%End
public:
QgsRubberBand(QgsMapCanvas* mapCanvas, bool isPolygon = false);
QgsRubberBand(QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon = false);
~QgsRubberBand();
void setColor(const QColor & color);

View File

@ -16,7 +16,7 @@ class QgsVertexMarker : QgsMapCanvasItem
ICON_BOX
};
QgsVertexMarker(QgsMapCanvas* mapCanvas);
QgsVertexMarker(QgsMapCanvas* mapCanvas /TransferThis/);
void setCenter(const QgsPoint& point);