KDStateMachineEditor API Documentation
1.2
|
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 ¤t, 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 |
|
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.
|
protectedvirtualslot |
Called whenever the model's contents layout changed (for example when indices got moved around)