Loading...
Searching...
No Matches
Scenario::MessageItemModel Class Referencefinal
The MessageItemModel class. More...
Inheritance diagram for Scenario::MessageItemModel:
Detailed Description
The MessageItemModel class.
Used as a wrapper with trees of node_type, to represent them the Qt way.
Public Types | |
| enum class | Column : int { Name = 0 , Value , Count } |
| using | node_type = TreeNodeBasedItemModel< Process::MessageNode >::node_type |
Public Types inherited from TreeNodeBasedItemModel< Process::MessageNode > | |
| using | node_type = Process::MessageNode |
Public Member Functions | |
| MessageItemModel (const StateModel &, QObject *parent) | |
| MessageItemModel & | operator= (const MessageItemModel &) |
| MessageItemModel & | operator= (const node_type &) |
| MessageItemModel & | operator= (node_type &&) |
| const Process::MessageNode & | rootNode () const override |
| Process::MessageNode & | rootNode () override |
| int | columnCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role) override |
| QStringList | mimeTypes () const override |
| QMimeData * | mimeData (const QModelIndexList &indexes) const override |
| bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override |
| bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
| Qt::DropActions | supportedDragActions () const override |
| Qt::DropActions | supportedDropActions () const override |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| void | userMessage (const State::Message &arg_1) |
Public Member Functions inherited from TreeNodeBasedItemModel< Process::MessageNode > | |
| Process::MessageNode & | nodeFromModelIndex (const QModelIndex &index) const |
| QModelIndex | parent (const QModelIndex &index) const final override |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const final override |
| int | rowCount (const QModelIndex &parent) const final override |
| bool | hasChildren (const QModelIndex &parent) const final override |
Public Member Functions inherited from TreeModel | |
| template<typename F > | |
| void | iterate (const QModelIndex &idx, const F &f) |
| idx: should be the root index of the view | |
| QModelIndex | convertPathToIndex (const TreePath &path) const |
Public Attributes | |
| const StateModel & | stateModel |
Member Function Documentation
◆ rootNode() [1/2]
|
inlineoverridevirtual |
Implements TreeNodeBasedItemModel< Process::MessageNode >.
◆ rootNode() [2/2]
|
inlineoverridevirtual |
Implements TreeNodeBasedItemModel< Process::MessageNode >.
The documentation for this class was generated from the following files:
- MessageItemModel.hpp
- MessageItemModel.cpp
Public Types inherited from