#include <Workspace/Widgets/objectdictionaryitemmodel.h>
Inherits QAbstractItemModel.
|
| ObjectDictionaryItemModel (Widgets::NamePath &pathToCollection) |
|
| ~ObjectDictionaryItemModel () override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
QWidget * | ensureHasWidget (const QModelIndex &index, bool readOnly=false) |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
DataExecution::ObjectDictionary * | getObjectDictionary () const |
|
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
|
void | insertItem (QModelIndex parent, const DataExecution::DataFactory &type) |
|
QModelIndex | parent (const QModelIndex &index) const override |
|
void | removeItem (QModelIndex item) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|
void | updateItemDescription (QModelIndex item, const QString &desc) |
|
void | updateItemName (QModelIndex item, const QString &name) |
|
◆ CustomRoles
Enumerator |
---|
QWidgetRole | |
NamePathRole | |
◆ ObjectDictionaryItemModel()
◆ ~ObjectDictionaryItemModel()
◆ 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 |
|
) |
| |
◆ flags()
Qt::ItemFlags flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ getObjectDictionary()
◆ hasChildren()
bool hasChildren |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ 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 |
◆ insertItem()
◆ itemDescriptionChangeRequested
void itemDescriptionChangeRequested |
( |
QModelIndex |
item, |
|
|
const QString & |
description |
|
) |
| |
|
signal |
◆ itemNameChangeRequested
void itemNameChangeRequested |
( |
QModelIndex |
item, |
|
|
const QString & |
name |
|
) |
| |
|
signal |
◆ parent()
QModelIndex parent |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ removeItem()
void removeItem |
( |
QModelIndex |
item | ) |
|
◆ rowCount()
int rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ updateItemDescription()
void updateItemDescription |
( |
QModelIndex |
item, |
|
|
const QString & |
desc |
|
) |
| |
◆ updateItemName()
void updateItemName |
( |
QModelIndex |
item, |
|
|
const QString & |
name |
|
) |
| |