#include <Workspace/Widgets/IOModel/iomodelitem.h>
◆ IOModelItem() [1/2]
◆ IOModelItem() [2/2]
◆ ~IOModelItem()
◆ getChild()
◆ getChildCount()
int getChildCount |
( |
| ) |
const |
◆ getDataObject()
- Returns
- The data object this item is associated with, or a null pointer if not associated with any particular input/output or the data the item represents is not currently available/present.
◆ getIOBase()
- Returns
- The input/output this item is associated with, or a null pointer if not associated with any particular input/output (in which case the item is really just there for grouping children).
◆ getName()
QString getName |
( |
| ) |
const |
- Returns
- The name this item represents. For hierarchical items, the name does not include anything about the parent, just this item only.
◆ getNamePath()
- Returns
- The name path associated with this item.
◆ getParent() [1/2]
◆ getParent() [2/2]
◆ getRoleData()
QVariant getRoleData |
( |
int |
role | ) |
const |
- Parameters
-
role | The role for which data is being requested. See the Qt documentation for QAbstractItemModel::data() for more details. |
- Returns
- The data for the specified role, or if no such data exists an invalid QVariant will be returned instead.
- See also
- setRoleData()
◆ getRow()
◆ hasChildren()
bool hasChildren |
( |
| ) |
const |
◆ insertChild()
void insertChild |
( |
IOModelItem & |
item, |
|
|
int |
index = -1 |
|
) |
| |
◆ moveChild()
void moveChild |
( |
int |
fromIndex, |
|
|
int |
toIndex |
|
) |
| |
◆ removeAllChildren()
void removeAllChildren |
( |
| ) |
|
◆ removeChild()
◆ setRoleData()
void setRoleData |
( |
int |
role, |
|
|
const QVariant & |
d |
|
) |
| const |
- Parameters
-
role | The role for which data is being set or cleared. See the Qt documentation for QAbstractItemModel::data() for more details. |
d | The data to set for the specified role. If this is an invalid QVariant, it will be interpreted as the client wants to clear the data for the specified role. |
- See also
- getRoleData()