equal
deleted
inserted
replaced
75 // |
75 // |
76 CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter() |
76 CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter() |
77 { |
77 { |
78 DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter +"); |
78 DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter +"); |
79 |
79 |
|
80 // Removes the parent item from component container |
|
81 if (iItem) |
|
82 { |
|
83 iItem->DeregisterCanvasGraphicsItem(); |
|
84 } |
|
85 |
80 // Release buffers |
86 // Release buffers |
81 ResetBuffers(); |
87 ResetBuffers(); |
82 |
88 |
83 // Remove association from direct container. |
89 // Remove association from direct container. |
84 if (iDirectContainer) |
90 if (iDirectContainer) |
85 { |
91 { |
86 iDirectContainer->MdcRemoveContent(this); |
92 iDirectContainer->MdcRemoveContent(this); |
87 } |
93 } |
88 |
94 |
89 iItem = NULL; |
95 iItem = NULL; |
90 |
96 |
91 DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter -"); |
97 DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter -"); |
92 } |
98 } |
93 |
99 |
289 // --------------------------------------------------------------------------- |
295 // --------------------------------------------------------------------------- |
290 // |
296 // |
291 void CMIDCanvasGraphicsItemPainter::Dispose() |
297 void CMIDCanvasGraphicsItemPainter::Dispose() |
292 { |
298 { |
293 DEBUG("CMIDCanvasGraphicsItemPainter::Dispose +"); |
299 DEBUG("CMIDCanvasGraphicsItemPainter::Dispose +"); |
294 |
300 |
295 delete this; |
301 delete this; |
296 |
302 |
297 DEBUG("CMIDCanvasGraphicsItemPainter::Dispose -"); |
303 DEBUG("CMIDCanvasGraphicsItemPainter::Dispose -"); |
298 } |
304 } |
299 |
305 |