|
Hi. Comments for method: /*! \brief Remove the given <i>widget</i> from the layout. * * This method finds the corresponding WWidgetItem and calls * removeItem(WLayoutItem *). The widget itself is not destroyed. * * \sa addWidget(WWidget *), removeItem(WLayoutItem *) */ void removeWidget(WWidget *widget); But implementation is different. void WLayout::removeWidget(WWidget *w) { WWidgetItem *widgetItem = findWidgetItem(w); if (widgetItem) { widgetItem->parentLayout()->removeItem(widgetItem); delete widgetItem; } } Patch is included below: --- WLayout.C.orig 2009-01-16 12:36:41.000000000 +0200 +++ WLayout.C 2009-04-16 12:51:06.000000000 +0300 @@ -72,10 +72,8 @@ { WWidgetItem *widgetItem = findWidgetItem(w); - if (widgetItem) { + if (widgetItem) widgetItem->parentLayout()->removeItem(widgetItem); - delete widgetItem; - } } void WLayout::updateAddItem(WLayoutItem *item) -- Andrii Arsirii Streamco http://streamco.org.ua |
------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
