|
KDStateMachineEditor API Documentation 2.3
|
#include <elementmodel.h>


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 |
Definition at line 89 of file elementmodel.h.
| Enumerator | |
|---|---|
| ElementRole | return Element* |
| InternalIdRole | return quint64 |
Definition at line 95 of file elementmodel.h.
|
explicit |
Definition at line 54 of file elementmodel.cpp.
| StateModel::~StateModel | ( | ) |
Definition at line 60 of file elementmodel.cpp.
|
override |
Definition at line 75 of file elementmodel.cpp.
References KDSME::ObjectTreeModel::data(), ElementRole, KDSME::ObjectTreeModel::index(), InternalIdRole, and KDSME::ObjectTreeModel::ObjectRole.
|
override |
Definition at line 109 of file elementmodel.cpp.
References ElementRole, KDSME::Element::flags, and KDSME::ObjectTreeModel::index().
|
override |
Definition at line 96 of file elementmodel.cpp.
| void StateModel::setState | ( | State * | state | ) |
Definition at line 69 of file elementmodel.cpp.
References KDSME::ObjectTreeModel::setRootObject(), state, and stateChanged().
Referenced by KDSME::StateMachineScene::setRootState().
| State * StateModel::state | ( | ) | const |
Definition at line 64 of file elementmodel.cpp.
References KDSME::ObjectTreeModel::rootObjects().
|
signal |
Referenced by setState().
|
readwrite |
Definition at line 92 of file elementmodel.h.
Referenced by KDSME::CreateElementCommand::redo(), and setState().