summaryrefslogtreecommitdiffstats
path: root/smtreeitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'smtreeitem.h')
-rw-r--r--smtreeitem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/smtreeitem.h b/smtreeitem.h
index 807e3d7..402d73f 100644
--- a/smtreeitem.h
+++ b/smtreeitem.h
@@ -17,15 +17,17 @@ class SmTreeItem {
SmTreeItem(int rows, SmTreeItem *parent = 0);
~SmTreeItem();
void appendChild(SmTreeItem *child);
- SmTreeItem *child(int row);
+ SmTreeItem *child(int row) const;
int childCount() const;
int columnCount() const;
int row() const;
SmTreeItem *parent();
+ void setParent(SmTreeItem *parent);
QVariant data(int column) const;
void setData(int column, const QVariant &data);
bool insertChild(int where, SmTreeItem *child);
- bool removeChild(int where);
+ bool removeChild(int where, bool deleteChild = true);
+
private:
QList<SmTreeItem*> mChildren;