Scenario::MessageItemModel Class Referencefinal

The MessageItemModel class. More...

Inheritance diagram for Scenario::MessageItemModel:
TreeNodeBasedItemModel< Process::MessageNode > TreeModel

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)
 
MessageItemModeloperator= (const MessageItemModel &)
 
MessageItemModeloperator= (const node_type &)
 
MessageItemModeloperator= (node_type &&)
 
const Process::MessageNoderootNode () const override
 
Process::MessageNoderootNode () 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::MessageNodenodeFromModelIndex (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 StateModelstateModel
 

The documentation for this class was generated from the following files: