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


class  AppendOperation
class  RemoveOperation
class  ReparentOperation
class  ResetOperation

Public Types

enum  Roles { ObjectRole = Qt::UserRole + 1, ObjectIdRole, UserRole = Qt::UserRole + 100 }

Public Member Functions

 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

Protected Attributes

ObjectTreeModelPrivate *const d_ptr

Member Enumeration Documentation


return QObject*


return quint64

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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products