KDStateMachineEditor  1.1.0
A framework for creating Qt State Machine metacode using a graphical user interface
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
KDSME::AbstractScene Class Reference
Inheritance diagram for KDSME::AbstractScene:
Inheritance graph
[legend]

Public Types

enum  EditTrigger { NoEditTriggers, SelectedClicked }
 
enum  ViewState { NoState, RefreshState }
 

Public Slots

void setCurrentIndex (const QModelIndex &index)
 

Signals

void modelChanged (QAbstractItemModel *model)
 
void stateChanged (ViewState state)
 
void instantiatorChanged (QObject *instantiator)
 
void contextMenuPolicyChanged (Qt::ContextMenuPolicy contextMenuPolicy)
 
void customContextMenuEvent (KDSME::AbstractSceneContextMenuEvent *event)
 

Public Member Functions

 AbstractScene (QQuickItem *parent=nullptr)
 
virtual void setModel (QAbstractItemModel *model)
 
QAbstractItemModel * model () const
 
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
 
QItemSelectionModel * selectionModel () const
 
QQuickItem * instantiator () const
 
void setInstantiator (QQuickItem *instantiator)
 
void setEditTriggers (EditTriggers triggers)
 
EditTriggers editTriggers () const
 
void setContextMenuPolicy (Qt::ContextMenuPolicy contextMenuPolicy)
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
QObject * itemForIndex (const QModelIndex &index) const
 
ViewState viewState () const
 
QModelIndex currentIndex () const
 

Protected Slots

virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
 
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void layoutChanged ()
 
void setViewState (ViewState state)
 

Protected Member Functions

bool event (QEvent *event) override
 

Properties

QAbstractItemModel model
 
QQuickItem instantiator
 
ViewState viewState
 
Qt::ContextMenuPolicy ContextMenuPolicy
 

Member Function Documentation

void KDSME::AbstractScene::customContextMenuEvent ( KDSME::AbstractSceneContextMenuEvent event)
signal

This signal is emitted when the scene's contextMenuPolicy is Qt::CustomContextMenu, and the user has requested a context menu on the scene. The position pos is the position of the context menu event that the scene receives. Normally this is in scene coordinates.

void AbstractScene::layoutChanged ( )
protectedvirtualslot

Called whenever the model's contents layout changed (for example when indices got moved around)


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