The AttributeListModel class.
More...
#include <attributelistmodel.h>
Inherits QAbstractTableModel.
◆ Column
Enumerator |
---|
COLUMN_KEY | |
COLUMN_TYPE | |
COLUMN_VALUE | |
COLUMN_UNIT | |
COLUMN_ACTIONS | |
_COLUMN_COUNT | |
◆ AttributeListModel() [1/3]
◆ AttributeListModel() [2/3]
◆ AttributeListModel() [3/3]
◆ ~AttributeListModel()
◆ setAttributeList()
◆ setUndoStack()
◆ add()
void add |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ remove()
void remove |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ moveUp()
void moveUp |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ moveDown()
void moveDown |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ rowCount()
int rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ columnCount()
int columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ headerData()
QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ setData()
bool setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ operator=()
◆ attributeListEdited()
◆ execCmd()
◆ validateKeyOrThrow()
AttributeKey validateKeyOrThrow |
( |
const QString & |
key | ) |
const |
|
private |
◆ buildUnitComboBoxData()
◆ mAttributeList
◆ mUndoStack
◆ mTypeComboBoxItems
◆ mNewKey
◆ mNewType
◆ mNewValue
◆ mNewUnit
◆ mOnEditedSlot
The documentation for this class was generated from the following files: