mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-29 20:34:56 +01:00
TileLayout: fix the clear() method
This commit is contained in:
parent
6411b1975d
commit
b45d113157
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "tile_layout.h"
|
||||
#include "tile_widget.h"
|
||||
#include "qtcommon.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -45,7 +46,10 @@ void TileLayout::clear()
|
|||
{
|
||||
QLayoutItem *item;
|
||||
while ((item = takeAt(0)))
|
||||
{
|
||||
QtCommon::DestroyObject(item->widget());
|
||||
delete item;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue