Extending Qt Creator Manual | TreeItem

Extending Qt Creator Manual 4.7.0

# TreeItem Class

(Debugger::Utils::TreeItem)

- List of all members, including inherited members

## Public Types

typedef | value_type

## Public Functions

| TreeItem()
virtual | ~TreeItem()
void | appendChild(Debugger::Utils::TreeItem *item)
int | begin() const
virtual bool | canFetchMore() const
Debugger::Utils::TreeItem * | childAt(int index) const
int | childCount() const
void | collapse()
virtual Debugger::QVariant | data(int column, int role) const
int | end() const
void | expand()
virtual void | fetchMore()
Debugger::Utils::TreeItem * | findAnyChild(const int &pred) const
Debugger::Utils::TreeItem * | findChildAtLevel(int level, const int &pred) const
Debugger::Utils::TreeItem * | firstChild() const
virtual Qt::ItemFlags | flags(int column) const
void | forAllChildren(const int &pred) const
void | forChildrenAtLevel(int level, const int &pred) const
void | forSelectedChildren(const int &pred) const
virtual bool | hasChildren() const
int | index() const
int | indexInParent() const
int | indexOf(const Debugger::Utils::TreeItem *item) const
void | insertChild(int pos, Debugger::Utils::TreeItem *item)
void | insertOrderedChild(Debugger::Utils::TreeItem *item, const int &cmp)
Debugger::Utils::TreeItem * | lastChild() const
int | level() const
Debugger::QAbstractItemModel * | model() const
Debugger::Utils::TreeItem * | parent() const
void | prependChild(Debugger::Utils::TreeItem *item)
void | removeChildAt(int pos)
void | removeChildren()
Debugger::Utils::TreeItem * | reverseFindAnyChild(const int &pred) const
virtual bool | setData(int column, const Debugger::QVariant &data, int role)
void | sortChildren(const int &cmp)
void | update()
void | updateAll()
void | updateColumn(int column)

## Member Type Documentation

### typedef TreeItem::value_type

## Member Function Documentation

### TreeItem::TreeItem()

Default constructs an instance of TreeItem.

### `[virtual]` TreeItem::~TreeItem()

Destroys the instance of TreeItem. The destructor is virtual.

### void TreeItem::appendChild(Debugger::Utils::TreeItem *item)

### int TreeItem::begin() const

### `[virtual]` bool TreeItem::canFetchMore() const

### Debugger::Utils::TreeItem *TreeItem::childAt(int index) const

### int TreeItem::childCount() const

### void TreeItem::collapse()

### `[virtual]` Debugger::QVariant TreeItem::data(int column, int role) const

See also setData().

### int TreeItem::end() const

### void TreeItem::expand()

### `[virtual]` void TreeItem::fetchMore()

### Debugger::Utils::TreeItem *TreeItem::findAnyChild(const int &pred) const

### Debugger::Utils::TreeItem *TreeItem::findChildAtLevel(int level, const int &pred) const

### Debugger::Utils::TreeItem *TreeItem::firstChild() const

### `[virtual]` Qt::ItemFlags TreeItem::flags(int column) const

### void TreeItem::forAllChildren(const int &pred) const

### void TreeItem::forChildrenAtLevel(int level, const int &pred) const

### void TreeItem::forSelectedChildren(const int &pred) const

### `[virtual]` bool TreeItem::hasChildren() const

### int TreeItem::index() const

### int TreeItem::indexInParent() const

### int TreeItem::indexOf(const Debugger::Utils::TreeItem *item) const

### void TreeItem::insertChild(int pos, Debugger::Utils::TreeItem *item)

### void TreeItem::insertOrderedChild(Debugger::Utils::TreeItem *item, const int &cmp)

### Debugger::Utils::TreeItem *TreeItem::lastChild() const

### int TreeItem::level() const

### Debugger::QAbstractItemModel *TreeItem::model() const

### Debugger::Utils::TreeItem *TreeItem::parent() const

### void TreeItem::prependChild(Debugger::Utils::TreeItem *item)

### void TreeItem::removeChildAt(int pos)

### void TreeItem::removeChildren()

### Debugger::Utils::TreeItem *TreeItem::reverseFindAnyChild(const int &pred) const

### `[virtual]` bool TreeItem::setData(int column, const Debugger::QVariant &data, int role)

See also data().

### void TreeItem::sortChildren(const int &cmp)

### void TreeItem::update()

### void TreeItem::updateAll()

### void TreeItem::updateColumn(int column)