OpenStudio:model_editor
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
modeleditor::TreeItem Class Reference

#include <treeitem.h>

Public Member Functions

void appendChild (TreeItem *child)
 
TreeItemchild (int row)
 
int childCount () const
 
int columnCount () const
 
QVariant data (int column) const
 
bool insertChildren (openstudio::model::ModelObject &object, const QList< QVariant > &data, int position, int count, int columns)
 
openstudio::model::ModelObject modelObject () const
 
bool moveChildren (int position, int count)
 
TreeItemparent ()
 
bool removeChildren (int position, int count)
 
int row () const
 
bool setData (int column, const QVariant &value)
 
bool setData (openstudio::model::ModelObject &data)
 
 TreeItem (const openstudio::model::ModelObject &object, const QList< QVariant > &data, TreeItem *parent=nullptr)
 
 ~TreeItem ()
 

Constructor & Destructor Documentation

modeleditor::TreeItem::TreeItem ( const openstudio::model::ModelObject &  object,
const QList< QVariant > &  data,
TreeItem parent = nullptr 
)
modeleditor::TreeItem::~TreeItem ( )

Member Function Documentation

void modeleditor::TreeItem::appendChild ( TreeItem child)
TreeItem* modeleditor::TreeItem::child ( int  row)
int modeleditor::TreeItem::childCount ( ) const
int modeleditor::TreeItem::columnCount ( ) const
QVariant modeleditor::TreeItem::data ( int  column) const
bool modeleditor::TreeItem::insertChildren ( openstudio::model::ModelObject &  object,
const QList< QVariant > &  data,
int  position,
int  count,
int  columns 
)
openstudio::model::ModelObject modeleditor::TreeItem::modelObject ( ) const
bool modeleditor::TreeItem::moveChildren ( int  position,
int  count 
)
TreeItem* modeleditor::TreeItem::parent ( )
bool modeleditor::TreeItem::removeChildren ( int  position,
int  count 
)
int modeleditor::TreeItem::row ( ) const
bool modeleditor::TreeItem::setData ( int  column,
const QVariant &  value 
)
bool modeleditor::TreeItem::setData ( openstudio::model::ModelObject &  data)