KDStateMachineEditor  1.1.0
A framework for creating Qt State Machine metacode using a graphical user interface
Classes | Public Types | Public Member Functions | Properties | List of all members
KDSME::StateModel Class Reference
Inheritance diagram for KDSME::StateModel:
Inheritance graph
[legend]

Classes

struct  Private
 

Public Types

enum  Role { ElementRole = ObjectTreeModel::UserRole + 1, InternalIdRole }
 
- Public Types inherited from KDSME::ObjectTreeModel
enum  Roles { ObjectRole = Qt::UserRole + 1, ObjectIdRole, UserRole = Qt::UserRole + 100 }
 

Public Member Functions

 StateModel (QObject *parent=nullptr)
 
Statestate () const
 
void setState (State *state)
 
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
 
- Public Member Functions inherited from KDSME::ObjectTreeModel
 ObjectTreeModel (QObject *parent=nullptr)
 
void appendRootObject (QObject *object)
 
QList< QObject * > rootObjects () const
 
void setRootObject (QObject *rootObject)
 
void setRootObjects (const QList< QObject * > &rootObjects)
 
void clear ()
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
QHash< int, QByteArray > roleNames () const override
 
QModelIndex indexForObject (QObject *object) const
 

Properties

KDSME::State state
 

Additional Inherited Members

- Protected Attributes inherited from KDSME::ObjectTreeModel
ObjectTreeModelPrivate *const d_ptr
 

Member Enumeration Documentation

Enumerator
ElementRole 

return Element*

InternalIdRole 

return quint64


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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
https://github.com/KDAB/KDStateMachineEditor