liblancelot
#include <PlasmaServiceListModel.h>
Public Slots | |
void | dataUpdated (const QString &name, const Plasma::DataEngine::Data &data) |
Public Slots inherited from Lancelot::ActionListModel | |
void | activated (int index) |
Public Member Functions | |
PlasmaServiceListModel (QString dataEngine) | |
virtual | ~PlasmaServiceListModel () |
L_Override void | activate (int index) |
L_Override QString | description (int index) const |
L_Override QIcon | icon (int index) const |
L_Override bool | isCategory (int index) const |
L_Override QIcon | selfIcon () const |
L_Override QString | selfTitle () const |
L_Override int | size () const |
L_Override QString | title (int index) const |
Public Member Functions inherited from Lancelot::ActionListModel | |
ActionListModel () | |
virtual | ~ActionListModel () |
virtual void | contextActivate (int index, QAction *context) |
virtual void | dataDragFinished (int index, Qt::DropAction action) |
virtual bool | dataDropAvailable (int where, const QMimeData *mimeData) |
virtual void | dataDropped (int where, const QMimeData *mimeData) |
virtual bool | hasContextActions (int index) const |
virtual QMimeData * | mimeData (int index) const |
virtual QMimeData * | selfMimeData () const |
virtual QString | selfShortTitle () const |
virtual void | setContextActions (int index, Lancelot::PopupMenu *menu) |
virtual void | setDropActions (int index, Qt::DropActions &actions, Qt::DropAction &defaultAction) |
Additional Inherited Members | |
Signals inherited from Lancelot::ActionListModel | |
void | itemActivated (int index) |
void | itemAltered (int index) |
void | itemDeleted (int index) |
void | itemInserted (int index) |
void | updated () |
Detailed Description
Definition at line 33 of file PlasmaServiceListModel.h.
Constructor & Destructor Documentation
Lancelot::PlasmaServiceListModel::PlasmaServiceListModel | ( | QString | dataEngine | ) |
Creates a new instance of PlasmaServiceListModel.
Definition at line 44 of file PlasmaServiceListModel.cpp.
|
virtual |
Destroys this PlasmaServiceListModel.
Definition at line 76 of file PlasmaServiceListModel.cpp.
Member Function Documentation
|
virtual |
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 141 of file PlasmaServiceListModel.cpp.
|
slot |
Definition at line 122 of file PlasmaServiceListModel.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- description of the specified item
Reimplemented from Lancelot::ActionListModel.
Definition at line 91 of file PlasmaServiceListModel.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- icon for the specified item
Reimplemented from Lancelot::ActionListModel.
Definition at line 101 of file PlasmaServiceListModel.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- whether the item represents a category
Reimplemented from Lancelot::ActionListModel.
Definition at line 111 of file PlasmaServiceListModel.cpp.
|
virtual |
Reimplemented from Lancelot::ActionListModel.
Definition at line 136 of file PlasmaServiceListModel.cpp.
|
virtual |
Reimplemented from Lancelot::ActionListModel.
Definition at line 131 of file PlasmaServiceListModel.cpp.
|
virtual |
- Returns
- the number of items in model
Implements Lancelot::ActionListModel.
Definition at line 117 of file PlasmaServiceListModel.cpp.
|
virtual |
- Parameters
-
index index of the item
- Returns
- title for the specified item
Implements Lancelot::ActionListModel.
Definition at line 81 of file PlasmaServiceListModel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.