#include <attributedelegates.h>
Compound-attribute editor — renders a NodeCompoundEditButton in the cell. Used by the Attribute Table for per-node multi-row attributes (Inflows / DWF / RDII / Treatment); reuses the same dialog the Property Browser opens. The model returns a NodeCompoundEditRef QVariant for these cells; displayText() shows the ref's summary so the cell stays informative when not in edit mode.
The metatype + QString converter need to be registered once at startup via registerNodeCompoundEditRefConverter() — the Attribute Table Panel does this in its constructor.
◆ CompoundEditDelegate()
| openswmmvis::CompoundEditDelegate::CompoundEditDelegate |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ createEditor()
| QWidget * openswmmvis::CompoundEditDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
opt, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ displayText()
| QString openswmmvis::CompoundEditDelegate::displayText |
( |
const QVariant & |
value, |
|
|
const QLocale & |
locale |
|
) |
| const |
|
override |
◆ setEditorData()
| void openswmmvis::CompoundEditDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ setModelData()
| void openswmmvis::CompoundEditDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
The documentation for this class was generated from the following files: