91 void name( QString _name );
156 QList< TreeItemObjectSelection* >
getLeafs();
165 #endif // TREEITEM_HH defined
TreeItemObjectSelection * parentItem_
Parent item or 0 if rootnode.
int childCount() const
get the number of children
int row() const
get the row of this item from the parent
TreeItemObjectSelection * child(int row)
return a child
TreeItemObjectSelection * next()
void appendChild(TreeItemObjectSelection *child)
add a child to this node
TreeItemObjectSelection * parent()
Get the parent item ( 0 if rootitem )
QList< TreeItemObjectSelection * > getLeafs()
get all leafes of the tree below this object ( These will be all visible objects ) ...
DataType dataType()
dataType
QList< TreeItemObjectSelection * > childItems_
Children of this node.
void removeChild(TreeItemObjectSelection *_item)
Remove a child from this object.
TreeItemObjectSelection * childExists(int _objectId)
Check if the element exists in the subtree of this element.
void setParent(TreeItemObjectSelection *_parent)
Set the parent pointer.
void deleteSubtree()
delete the whole subtree below this item ( The item itself is not touched )