TreeModel Class
(Utils::TreeModel)The TreeModel class is a convienience base class for models to use in a QTreeView. More...
| Header: | #include <TreeModel> |
| Inherits: | BaseTreeModel |
Public Functions
| TreeModel(QObject *parent = 0) | |
| TreeModel(RootItem *root, QObject *parent = 0) | |
| Internal::SelectType<Level, LevelItemTypes...>::Type * | findItemAtLevel(const Predicate &pred) const |
| BestItem * | findNonRootItem(const Predicate &pred) const |
| void | forAllItems(const Predicate &pred) const |
| void | forItemsAtLevel(const Predicate &pred) const |
| void | forSelectedItems(const Predicate &pred) const |
| BestItem * | itemForIndex(const QModelIndex &idx) const |
| Internal::SelectType<Level, LevelItemTypes...>::Type * | itemForIndexAtLevel(const QModelIndex &idx) const |
| BestItem * | nonRootItemForIndex(const QModelIndex &idx) const |
| RootItem * | rootItem() const |
- 39 public functions inherited from QAbstractItemModel
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject
- 1 signal inherited from Utils::BaseTreeModel
- 18 signals inherited from QAbstractItemModel
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from Utils::BaseTreeModel
- 19 protected functions inherited from QAbstractItemModel
- 9 protected functions inherited from QObject
- 1 protected slot inherited from QAbstractItemModel
- 2 protected variables inherited from QObject
Detailed Description
The TreeModel class is a convienience base class for models to use in a QTreeView.
Member Function Documentation
TreeModel::TreeModel(QObject *parent = 0)
Default constructs an instance of TreeModel.
TreeModel::TreeModel(RootItem *root, QObject *parent = 0)
Default constructs an instance of TreeModel.