Qudi
Public Member Functions | Public Attributes | List of all members
automation.TreeItem Class Reference

Item in a TreeModel. More...

Public Member Functions

def __init__ (self, data, parent=None)
 Create TreeItem. More...
 
def appendChild (self, item)
 Append child node to tree item. More...
 
def child (self, row)
 Get child item for specific index. More...
 
def childCount (self)
 Get number of children. More...
 
def columnCount (self)
 Return number of columns. More...
 
def data (self, column)
 Get data from a given column. More...
 
def parent (self)
 Get parent item. More...
 
def row (self)
 Get our own row index. More...
 

Public Attributes

 parentItem
 
 itemData
 
 childItems
 

Detailed Description

Item in a TreeModel.

Constructor & Destructor Documentation

◆ __init__()

def automation.TreeItem.__init__ (   self,
  data,
  parent = None 
)

Create TreeItem.

Parameters
dataobject: data stored in TreeItem
parentTreeitem: parent of this item

Member Function Documentation

◆ appendChild()

def automation.TreeItem.appendChild (   self,
  item 
)

Append child node to tree item.

Parameters
item:

◆ child()

def automation.TreeItem.child (   self,
  row 
)

Get child item for specific index.

Parameters
rowint: row index for child item
Returns
: child item in given row

◆ childCount()

def automation.TreeItem.childCount (   self)

Get number of children.

Returns
int: number of children

◆ columnCount()

def automation.TreeItem.columnCount (   self)

Return number of columns.

Returns
int: number of columns in data

◆ data()

def automation.TreeItem.data (   self,
  column 
)

Get data from a given column.

, column int: column index

Returns
: data stored in column

◆ parent()

def automation.TreeItem.parent (   self)

Get parent item.

Returns
TreeItem: parent item

◆ row()

def automation.TreeItem.row (   self)

Get our own row index.

Returns
int: row index in parent item

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