TreeNodeBasedItemModel< NodeType > Class Template Referenceabstract
Inheritance diagram for TreeNodeBasedItemModel< NodeType >:
TreeModel

Public Types

using node_type = NodeType
 

Public Member Functions

virtual NodeType & rootNode ()=0
 
virtual const NodeType & rootNode () const =0
 
NodeType & nodeFromModelIndex (const QModelIndex &index) const
 
QModelIndex parent (const QModelIndex &index) const final override
 
QModelIndex index (int row, int column, const QModelIndex &parent) const final override
 
int rowCount (const QModelIndex &parent) const final override
 
bool hasChildren (const QModelIndex &parent) const final override
 
- Public Member Functions inherited from TreeModel
template<typename F >
void iterate (const QModelIndex &idx, const F &f)
 idx: should be the root index of the view
 
QModelIndex convertPathToIndex (const TreePath &path) const
 

The documentation for this class was generated from the following file: