#include <dbc_tree_model.h>
|
| enum | Column {
Name
, CanId
, PayloadLength
, StartBit
,
BitLength
, ByteOrder
, Signed
, Unit
,
Comment
, ColumnCount
} |
| |
| enum | Role {
NodeTypeRole = Qt::UserRole + 1
, CanIdRole
, PayloadLengthRole
, StartBitRole
,
BitLengthRole
, LittleEndianRole
, SignedRole
, UnitRole
,
CommentRole
, ValueDescriptionsRole
, ExtendedRole
} |
| |
|
| | DbcTreeModel (QObject *parent=nullptr) |
| |
| void | SetTree (std::unique_ptr< TreeNode > root) |
| |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| |
| QModelIndex | parent (const QModelIndex &child) const override |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
Read-only model. Owns an immutable tree; all indexes expire on SetTree(). Use QPersistentModelIndex to observe reset invalidation. Call on the model thread.
Definition at line 11 of file dbc_tree_model.h.
◆ Column
| enum DbcTreeModel::Column |
◆ Role
◆ DbcTreeModel()
| DbcTreeModel::DbcTreeModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ SetTree()
| void DbcTreeModel::SetTree |
( |
std::unique_ptr< TreeNode > |
root | ) |
|
◆ index()
| QModelIndex DbcTreeModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ parent()
| QModelIndex DbcTreeModel::parent |
( |
const QModelIndex & |
child | ) |
const |
|
override |
◆ rowCount()
| int DbcTreeModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ columnCount()
| int DbcTreeModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant DbcTreeModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ headerData()
| QVariant DbcTreeModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags DbcTreeModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
The documentation for this class was generated from the following files: