A tree item used by QmitkPropertyItemModel to represent a property row.
More...
#include <QmitkPropertyItem.h>
A tree item used by QmitkPropertyItemModel to represent a property row.
Each item stores a list of QVariant column data (typically property name and value) and maintains parent-child relationships to form a tree structure. This is a non-Qt helper class used internally by QmitkPropertyItemModel.
- See also
- QmitkPropertyItemModel
-
QmitkPropertyItemDelegate
Definition at line 29 of file QmitkPropertyItem.h.
◆ QmitkPropertyItem()
| QmitkPropertyItem::QmitkPropertyItem |
( |
const QList< QVariant > & |
data | ) |
|
|
explicit |
Constructs a property item with the given column data.
- Parameters
-
| [in] | data | A list of QVariant values, one per column. |
◆ ~QmitkPropertyItem()
| QmitkPropertyItem::~QmitkPropertyItem |
( |
| ) |
|
◆ AppendChild()
Appends a child item to this item.
- Parameters
-
| [in] | child | The child item to append. Takes ownership. |
◆ GetChild()
Returns the child item at the given row.
- Parameters
-
| [in] | row | The zero-based row index. |
- Returns
- Pointer to the child item, or nullptr if out of range.
◆ GetChildCount()
| int QmitkPropertyItem::GetChildCount |
( |
| ) |
const |
Returns the number of child items.
- Returns
- The child count.
◆ GetColumnCount()
| int QmitkPropertyItem::GetColumnCount |
( |
| ) |
const |
Returns the number of data columns.
- Returns
- The column count.
◆ GetData()
| QVariant QmitkPropertyItem::GetData |
( |
int |
column | ) |
const |
Returns the data for the given column.
- Parameters
-
| [in] | column | The zero-based column index. |
- Returns
- The column data as QVariant.
◆ GetParent()
Returns the parent item.
- Returns
- Pointer to the parent item, or nullptr for the root item.
◆ GetRow()
| int QmitkPropertyItem::GetRow |
( |
| ) |
|
Returns the row index of this item within its parent.
- Returns
- The zero-based row index.
The documentation for this class was generated from the following file: