Extending Qt Creator Manual | BaseTreeModel

Extending Qt Creator Manual 4.7.1

# BaseTreeModel Class

(Debugger::Utils::BaseTreeModel)

- List of all members, including inherited members

## Protected Functions

| BaseTreeModel(Debugger::QObject *parent = nullptr)
| BaseTreeModel(Debugger::Utils::TreeItem *root, Debugger::QObject *parent = nullptr)
| ~BaseTreeModel()
bool | canFetchMore(const int &idx) const override
void | clear()
int | columnCount(const int &idx) const override
Debugger::QVariant | data(const int &idx, int role) const override
void | destroyItem(Debugger::Utils::TreeItem *item)
void | fetchMore(const int &idx) override
Qt::ItemFlags | flags(const int &idx) const override
bool | hasChildren(const int &idx) const override
Debugger::QVariant | headerData(int section, Qt::Orientation orientation, int role) const
int | index(int, int, const int &) const override
int | indexForItem(const Debugger::Utils::TreeItem *) const
Debugger::Utils::TreeItem * | itemForIndex(const int &) const
int | parent(const int &) const override
void | requestCollapse(int)
void | requestExpansion(int)
Debugger::Utils::TreeItem * | rootItem() const
int | rowCount(const int &idx = ...) const override
bool | setData(const int &idx, const Debugger::QVariant &data, int role) override
void | setHeader(const Debugger::QStringList &displays)
void | setHeaderToolTip(const Debugger::QStringList &tips)
void | setRootItem(Debugger::Utils::TreeItem *item)
int | sibling(int, int, const int &) const override
Debugger::Utils::TreeItem * | takeItem(Debugger::Utils::TreeItem *item)

## Member Function Documentation

### `[protected]` BaseTreeModel::BaseTreeModel(Debugger::QObject *parent = nullptr)

Default constructs an instance of BaseTreeModel.

### `[protected]` BaseTreeModel::BaseTreeModel(Debugger::Utils::TreeItem *root, Debugger::QObject *parent = nullptr)

Default constructs an instance of BaseTreeModel.

### `[protected]` BaseTreeModel::~BaseTreeModel()

Destroys the instance of BaseTreeModel.

### `[protected]` bool BaseTreeModel::canFetchMore(const int &idx) const

### `[protected]` void BaseTreeModel::clear()

### `[protected]` int BaseTreeModel::columnCount(const int &idx) const

### `[protected]` Debugger::QVariant BaseTreeModel::data(const int &idx, int role) const

See also setData().

### `[protected]` void BaseTreeModel::destroyItem(Debugger::Utils::TreeItem *item)

### `[protected]` void BaseTreeModel::fetchMore(const int &idx)

### `[protected]` Qt::ItemFlags BaseTreeModel::flags(const int &idx) const

### `[protected]` bool BaseTreeModel::hasChildren(const int &idx) const

### `[protected]` Debugger::QVariant BaseTreeModel::headerData(int section, Qt::Orientation orientation, int role) const

### `[protected]` int BaseTreeModel::index(int, int, const int &) const

### `[protected]` int BaseTreeModel::indexForItem(const Debugger::Utils::TreeItem *) const

### `[protected]` Debugger::Utils::TreeItem *BaseTreeModel::itemForIndex(const int &) const

### `[protected]` int BaseTreeModel::parent(const int &) const

### `[protected]` void BaseTreeModel::requestCollapse(int)

### `[protected]` void BaseTreeModel::requestExpansion(int)

### `[protected]` Debugger::Utils::TreeItem *BaseTreeModel::rootItem() const

See also setRootItem().

### `[protected]` int BaseTreeModel::rowCount(const int &idx = ...) const

### `[protected]` bool BaseTreeModel::setData(const int &idx, const Debugger::QVariant &data, int role)

See also data().

### `[protected]` void BaseTreeModel::setHeader(const Debugger::QStringList &displays)

### `[protected]` void BaseTreeModel::setHeaderToolTip(const Debugger::QStringList &tips)

### `[protected]` void BaseTreeModel::setRootItem(Debugger::Utils::TreeItem *item)

See also rootItem().

### `[protected]` int BaseTreeModel::sibling(int, int, const int &) const

### `[protected]` Debugger::Utils::TreeItem *BaseTreeModel::takeItem(Debugger::Utils::TreeItem *item)