KDStateMachineEditor  1.0.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 }
 
- Public Types inherited from KDSME::ObjectTreeModel
enum  Roles { ObjectRole = Qt::UserRole + 1, 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 ()
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
virtual QModelIndex parent (const QModelIndex &index) const override
 
virtual 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
 

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