The model acts as interface into a ObjectGroup's hierarchy of DataObjects and nested ObjectGroups.
#include <Workspace/Widgets/ObjectGroup/objectgroupmodel.h>
Inherits QAbstractItemModel.
◆ CustomRoles
Enumerator |
---|
QWidgetRole | |
NamePathRole | |
◆ ObjectGroupModel()
◆ ~ObjectGroupModel()
◆ columnCount()
int columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ ensureHasWidget()
QWidget * ensureHasWidget |
( |
const QModelIndex & |
index, |
|
|
bool |
readOnly = false |
|
) |
| |
◆ headerData()
QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ index()
QModelIndex index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ parent()
QModelIndex parent |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ rowCount()
int rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |