diff -r 7f43b93242aa -r 96402b172173 treeitem.h --- a/treeitem.h Mon Oct 06 11:10:20 2008 +0000 +++ b/treeitem.h Wed Oct 29 17:42:34 2008 +0000 @@ -13,11 +13,19 @@ TreeItem(const QList &data, TreeItem *parent = 0); ~TreeItem(); - void appendChild(TreeItem *child); + // General housekeeping + void appendChild (TreeItem *child); + void removeChild (int row); TreeItem *child(int row); int childCount() const; int columnCount() const; + + int row() const; + int column() const; + TreeItem *parent(); + + // Accessing data QVariant data(int column) const; void setHeading (const QString s); QString getHeading(); @@ -25,10 +33,6 @@ Type getType (); QString getTypeName (); - int row() const; - int column() const; - TreeItem *parent(); - // Relation to map objects in graphicsscene LinkableMapObj* getLMO(); void setLMO (LinkableMapObj*);