TreeModel Class

(ProjectExplorer::Utils::TreeModel)

Public Types

typedef BestItem
typedef RootItem

Public Functions

TreeModel(int *parent = nullptr)
TreeModel(ProjectExplorer::Utils::TreeModel::RootItem *root, int *parent = nullptr)
typename Internal::SelectType<Level, LevelItemTypes...>::Type *findItemAtLevel(const Predicate &pred) const
ProjectExplorer::Utils::TreeModel::BestItem *findNonRootItem(const Predicate &pred) const
void forAllItems(const Predicate &pred) const
void forItemsAtLevel(const Predicate &pred) const
void forSelectedItems(const Predicate &pred) const
ProjectExplorer::Utils::TreeModel::BestItem *itemForIndex(const ProjectExplorer::QModelIndex &idx) const
typename Internal::SelectType<Level, LevelItemTypes...>::Type *itemForIndexAtLevel(const ProjectExplorer::QModelIndex &idx) const
ProjectExplorer::Utils::TreeModel::BestItem *nonRootItemForIndex(const ProjectExplorer::QModelIndex &idx) const
ProjectExplorer::Utils::TreeModel::RootItem *rootItem() const

Member Type Documentation

typedef TreeModel::BestItem

typedef TreeModel::RootItem

Member Function Documentation

TreeModel::TreeModel(int *parent = nullptr)

Default constructs an instance of TreeModel.

TreeModel::TreeModel(ProjectExplorer::Utils::TreeModel::RootItem *root, int *parent = nullptr)

Default constructs an instance of TreeModel.

typename Internal::SelectType<Level, LevelItemTypes...>::Type *TreeModel::findItemAtLevel(const Predicate &pred) const

ProjectExplorer::Utils::TreeModel::BestItem *TreeModel::findNonRootItem(const Predicate &pred) const

void TreeModel::forAllItems(const Predicate &pred) const

void TreeModel::forItemsAtLevel(const Predicate &pred) const

void TreeModel::forSelectedItems(const Predicate &pred) const

ProjectExplorer::Utils::TreeModel::BestItem *TreeModel::itemForIndex(const ProjectExplorer::QModelIndex &idx) const

typename Internal::SelectType<Level, LevelItemTypes...>::Type *TreeModel::itemForIndexAtLevel(const ProjectExplorer::QModelIndex &idx) const

ProjectExplorer::Utils::TreeModel::BestItem *TreeModel::nonRootItemForIndex(const ProjectExplorer::QModelIndex &idx) const

ProjectExplorer::Utils::TreeModel::RootItem *TreeModel::rootItem() const