Inviwo
0.9.10.1
Inviwo documentation
|
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 | |
TreeItem & | operator= (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 () |
TreeItem * | child (int row) const |
int | row () const |
int | childCount () const |
int | columnCount () const |
TreeItem * | parent () 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 |