KDStateMachineEditor  1.0.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
[legend]

Classes

class  AppendOperation
 
class  RemoveOperation
 
class  ReparentOperation
 
class  ResetOperation
 

Public Types

enum  Roles { ObjectRole = Qt::UserRole + 1, 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 ()
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) 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
 

Protected Attributes

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