Diffstat (limited to 'core/pim/osearch/olistviewitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/olistviewitem.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/pim/osearch/olistviewitem.cpp b/core/pim/osearch/olistviewitem.cpp index 29c5942..2d67559 100644 --- a/core/pim/osearch/olistviewitem.cpp +++ b/core/pim/osearch/olistviewitem.cpp @@ -25,6 +25,17 @@ OListViewItem::OListViewItem(QListView *parent, QString name) } OListViewItem::~OListViewItem() { } +void OListViewItem::clearList() +{ + QListViewItem *item = firstChild(); + QListViewItem *toDel; + while ( item != 0 ) { + toDel = item; + item = item->nextSibling(); + delete toDel; + } +} + |