liblancelot
#include <ActionTreeModelProxy.h>
Signals | |
void | itemActivated (int index) |
void | itemAltered (int index) |
void | itemDeleted (int index) |
void | itemInserted (int index) |
void | updated () |
Signals inherited from Lancelot::ActionListModel | |
void | itemActivated (int index) |
void | itemAltered (int index) |
void | itemDeleted (int index) |
void | itemInserted (int index) |
void | updated () |
Public Member Functions | |
ActionTreeModelProxy (ActionListModel *model, QString title=QString(), QIcon icon=QIcon()) | |
~ActionTreeModelProxy () | |
L_Override ActionTreeModel * | child (int index) |
L_Override void | contextActivate (int index, QAction *context) |
L_Override void | dataDragFinished (int index, Qt::DropAction action) |
L_Override bool | dataDropAvailable (int where, const QMimeData *mimeData) |
L_Override void | dataDropped (int where, const QMimeData *mimeData) |
L_Override QString | description (int index) const |
L_Override bool | hasContextActions (int index) const |
L_Override QIcon | icon (int index) const |
L_Override bool | isCategory (int index) const |
L_Override QMimeData * | mimeData (int index) const |
ActionListModel * | model () const |
L_Override QIcon | selfIcon () const |
L_Override QString | selfTitle () const |
L_Override void | setContextActions (int index, Lancelot::PopupMenu *menu) |
L_Override void | setDropActions (int index, Qt::DropActions &actions, Qt::DropAction &defaultAction) |
L_Override int | size () const |
L_Override QString | title (int index) const |
Public Member Functions inherited from Lancelot::ActionTreeModel | |
ActionTreeModel () | |
virtual | ~ActionTreeModel () |
Public Member Functions inherited from Lancelot::ActionListModel | |
ActionListModel () | |
virtual | ~ActionListModel () |
virtual QMimeData * | selfMimeData () const |
virtual QString | selfShortTitle () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
L_Override void | activate (int index) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Slots inherited from Lancelot::ActionListModel | |
void | activated (int index) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Definition at line 30 of file ActionTreeModelProxy.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 32 of file ActionTreeModelProxy.cpp.
Lancelot::ActionTreeModelProxy::~ActionTreeModelProxy | ( | ) |
Definition at line 51 of file ActionTreeModelProxy.cpp.
Member Function Documentation
|
protectedvirtual |
Models should reimplement this function.
It is invoked when an item is activated, before the itemActivated signal is emitted
- Parameters
-
index of the item that is activated
Reimplemented from Lancelot::ActionListModel.
Definition at line 119 of file ActionTreeModelProxy.cpp.
|
virtual |
Implements Lancelot::ActionTreeModel.
Definition at line 62 of file ActionTreeModelProxy.cpp.
|
virtual |
Method for handling context menu actions.
- Parameters
-
index of the activated item context index of the context action
Reimplemented from Lancelot::ActionListModel.
Definition at line 94 of file ActionTreeModelProxy.cpp.
|
virtual |
This function is invoked when a data is dropped.
- Parameters
-
index index of the dragged item action invoked drop action
Reimplemented from Lancelot::ActionListModel.
Definition at line 145 of file ActionTreeModelProxy.cpp.
|
virtual |
- Returns
- whether the data can be dropped at the specified position
- Parameters
-
where position mimeData dragged data
Reimplemented from Lancelot::ActionListModel.
Definition at line 135 of file ActionTreeModelProxy.cpp.
|
virtual |
Invoked when the data is dropped into the model.
- Parameters
-
where position mimeData dropped data
Reimplemented from Lancelot::ActionListModel.
Definition at line 140 of file ActionTreeModelProxy.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- description of the specified item
Reimplemented from Lancelot::ActionListModel.
Definition at line 99 of file ActionTreeModelProxy.cpp.
|
virtual |
- Returns
- whether the specified item has context actions
- Parameters
-
index index of the item
Reimplemented from Lancelot::ActionListModel.
Definition at line 84 of file ActionTreeModelProxy.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- icon for the specified item
Reimplemented from Lancelot::ActionListModel.
Definition at line 104 of file ActionTreeModelProxy.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- whether the item represents a category
Reimplemented from Lancelot::ActionListModel.
Definition at line 109 of file ActionTreeModelProxy.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
- Parameters
-
index index of the item
- Returns
- mime data for the specified item
Reimplemented from Lancelot::ActionListModel.
Definition at line 124 of file ActionTreeModelProxy.cpp.
ActionListModel * Lancelot::ActionTreeModelProxy::model | ( | ) | const |
Definition at line 56 of file ActionTreeModelProxy.cpp.
|
virtual |
Reimplemented from Lancelot::ActionListModel.
Definition at line 73 of file ActionTreeModelProxy.cpp.
|
virtual |
Reimplemented from Lancelot::ActionListModel.
Definition at line 68 of file ActionTreeModelProxy.cpp.
|
virtual |
Adds actions ofr the specifies item to menu.
- Parameters
-
index index of the item menu menu to add the actions to
Reimplemented from Lancelot::ActionListModel.
Definition at line 89 of file ActionTreeModelProxy.cpp.
|
virtual |
- Parameters
-
index index of the item to be dragged actions supported drop actions defaultAction default drop action
Reimplemented from Lancelot::ActionListModel.
Definition at line 129 of file ActionTreeModelProxy.cpp.
|
virtual |
- Returns
- the number of items in model
Implements Lancelot::ActionListModel.
Definition at line 114 of file ActionTreeModelProxy.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- title for the specified item
Implements Lancelot::ActionListModel.
Definition at line 79 of file ActionTreeModelProxy.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.