KDStateMachineEditor API Documentation 2.3
Loading...
Searching...
No Matches
KDSME::StateModel Class Reference

#include <elementmodel.h>

Inheritance diagram for KDSME::StateModel:
Collaboration diagram for KDSME::StateModel:

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 }

Signals

void stateChanged ()

Public Member Functions

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

Properties

KDSME::State * state

Additional Inherited Members

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

Detailed Description

Definition at line 89 of file elementmodel.h.

Member Enumeration Documentation

◆ Role

Enumerator
ElementRole 

return Element*

InternalIdRole 

return quint64

Definition at line 95 of file elementmodel.h.

Constructor & Destructor Documentation

◆ StateModel()

StateModel::StateModel ( QObject * parent = nullptr)
explicit

◆ ~StateModel()

StateModel::~StateModel ( )

Definition at line 60 of file elementmodel.cpp.

Member Function Documentation

◆ data()

QVariant StateModel::data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
override

◆ flags()

Qt::ItemFlags StateModel::flags ( const QModelIndex & index) const
override

◆ headerData()

QVariant StateModel::headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const
override

Definition at line 96 of file elementmodel.cpp.

◆ setState()

void StateModel::setState ( State * state)

◆ state()

State * StateModel::state ( ) const

Definition at line 64 of file elementmodel.cpp.

References KDSME::ObjectTreeModel::rootObjects().

◆ stateChanged

void KDSME::StateModel::stateChanged ( )
signal

Referenced by setState().

Property Documentation

◆ state

KDSME::State * KDSME::StateModel::state
readwrite

Definition at line 92 of file elementmodel.h.

Referenced by KDSME::CreateElementCommand::redo(), and setState().


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDStateMachineEditor
Create Qt State Machine metacode using a graphical user interface
https://github.com/KDAB/KDStateMachineEditor
Generated on for KDStateMachineEditor API Documentation by doxygen 1.15.0