Diffstat (limited to 'core/pim/osearch/olistviewitem.cpp') (more/less context) (ignore 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 | |||
@@ -7,24 +7,35 @@ | |||
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | 9 | ||
10 | #include "olistviewitem.h" | 10 | #include "olistviewitem.h" |
11 | 11 | ||
12 | OListViewItem::OListViewItem(OListViewItem *parent) | 12 | OListViewItem::OListViewItem(OListViewItem *parent) |
13 | : QListViewItem(parent) | 13 | : QListViewItem(parent) |
14 | { | 14 | { |
15 | } | 15 | } |
16 | 16 | ||
17 | OListViewItem::OListViewItem(OListViewItem *parent, QString name) | 17 | OListViewItem::OListViewItem(OListViewItem *parent, QString name) |
18 | : QListViewItem(parent,name) | 18 | : QListViewItem(parent,name) |
19 | { | 19 | { |
20 | } | 20 | } |
21 | 21 | ||
22 | OListViewItem::OListViewItem(QListView *parent, QString name) | 22 | OListViewItem::OListViewItem(QListView *parent, QString name) |
23 | : QListViewItem(parent, name) | 23 | : QListViewItem(parent, name) |
24 | { | 24 | { |
25 | } | 25 | } |
26 | 26 | ||
27 | OListViewItem::~OListViewItem() | 27 | OListViewItem::~OListViewItem() |
28 | { | 28 | { |
29 | } | 29 | } |
30 | 30 | ||
31 | void OListViewItem::clearList() | ||
32 | { | ||
33 | QListViewItem *item = firstChild(); | ||
34 | QListViewItem *toDel; | ||
35 | while ( item != 0 ) { | ||
36 | toDel = item; | ||
37 | item = item->nextSibling(); | ||
38 | delete toDel; | ||
39 | } | ||
40 | } | ||
41 | |||