Inviwo  0.9.10.1
Inviwo documentation
inviwo::TreeItem Class Reference

Public Member Functions

 TreeItem (TreeItem *parent=nullptr)
 
 TreeItem (const QString &caption, FileTreeModel::ListElemType type, TreeItem *parent=nullptr)
 
 TreeItem (const QIcon &icon, const std::string &filename, bool isExample=false, TreeItem *parent=nullptr)
 
 TreeItem (const TreeItem &)=delete
 
TreeItemoperator= (const TreeItem &)=delete
 
void addChild (std::unique_ptr< TreeItem > child)
 
void addChildren (std::vector< std::unique_ptr< TreeItem >> children)
 
bool insertChildren (int position, int count)
 
bool removeChildren (int position, int count)
 
void removeChildren ()
 
TreeItemchild (int row) const
 
int row () const
 
int childCount () const
 
int columnCount () const
 
TreeItemparent () const
 
QVariant data (int column, int role) const
 
FileTreeModel::ListElemType type () const
 
void setData (const QString &caption, FileTreeModel::ListElemType type)
 
void setData (const QIcon &icon, const std::string &filename, bool isExample)
 
bool operator== (const TreeItem &tree) const
 
bool operator!= (const TreeItem &tree) const
 

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