liblancelot
MergedActionListModel.cpp
Go to the documentation of this file.
148 void MergedActionListModel::setDropActions(int index, Qt::DropActions & actions, Qt::DropAction & defaultAction)
274 void MergedActionListModel::Private::toChildCoordinates(int index, int & model, int & modelIndex) const
294 void MergedActionListModel::Private::fromChildCoordinates(int & index, int model, int modelIndex) const
322 void MergedActionListModel::addModel(QIcon icon, const QString & title, ActionListModel * model)
ActionListModel * modelAt(int index)
Definition: MergedActionListModel.cpp:338
L_Override QMimeData * mimeData(int index) const
Definition: MergedActionListModel.cpp:121
virtual bool hasModelContextActions(int index) const
Definition: MergedActionListModel.cpp:192
QObject * sender() const
virtual void modelDataDropped(int index, Qt::DropAction action)
This function is invoked when a model is dragged and dropped.
Definition: MergedActionListModel.cpp:142
L_Override int size() const
Definition: MergedActionListModel.cpp:361
virtual void modelContextActivate(int index, QAction *context)
Activates the context for the specified model.
Definition: MergedActionListModel.cpp:205
void updated()
This signal is emitted when the model is updated and the update is too complex to explain using itemI...
L_Override void contextActivate(int index, QAction *context)
Method for handling context menu actions.
Definition: MergedActionListModel.cpp:262
void addModel(QIcon icon, const QString &title, ActionListModel *model)
Adds a model to the list.
Definition: MergedActionListModel.cpp:322
virtual int size() const =0
int modelCount() const
Definition: MergedActionListModel.cpp:355
L_Override void setContextActions(int index, Lancelot::PopupMenu *menu)
Adds actions ofr the specifies item to menu.
Definition: MergedActionListModel.cpp:252
L_Override void setDropActions(int index, Qt::DropActions &actions, Qt::DropAction &defaultAction)
Definition: MergedActionListModel.cpp:148
L_Override void activate(int index)
Models should reimplement this function.
Definition: MergedActionListModel.cpp:222
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
L_Override QIcon icon(int index) const
Definition: MergedActionListModel.cpp:111
virtual ~MergedActionListModel()
Destroys this MergedActionListModel.
Definition: MergedActionListModel.cpp:43
virtual QIcon selfIcon() const
Definition: ActionListModel.cpp:123
virtual QString selfTitle() const
Definition: ActionListModel.cpp:113
MergedActionListModel()
Creates a new instance of MergedActionListModel.
Definition: MergedActionListModel.cpp:36
L_Override void dataDragFinished(int index, Qt::DropAction action)
This function is invoked when a data is dropped.
Definition: MergedActionListModel.cpp:131
void setShowModelTitles(bool show)
Sets whether model titles are shown.
Definition: MergedActionListModel.cpp:388
void modelItemInserted(int index)
Definition: MergedActionListModel.cpp:53
void modelItemDeleted(int index)
Definition: MergedActionListModel.cpp:71
L_Override bool hasContextActions(int index) const
Definition: MergedActionListModel.cpp:242
L_Override QString description(int index) const
Definition: MergedActionListModel.cpp:101
L_Override bool isCategory(int index) const
Definition: MergedActionListModel.cpp:212
L_Override void dataDropped(int where, const QMimeData *mimeData)
Invoked when the data is dropped into the model.
Definition: MergedActionListModel.cpp:182
virtual QMimeData * modelMimeData(int index) const
Definition: MergedActionListModel.cpp:166
L_Override QString title(int index) const
Definition: MergedActionListModel.cpp:232
typedef DropActions
bool showModelTitles() const
Definition: MergedActionListModel.cpp:383
bool hideEmptyModels() const
Definition: MergedActionListModel.cpp:371
L_Override bool dataDropAvailable(int where, const QMimeData *mimeData)
Definition: MergedActionListModel.cpp:172
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void setModelDropActions(int index, Qt::DropActions &actions, Qt::DropAction &defaultAction)
Definition: MergedActionListModel.cpp:158
void modelItemAltered(int index)
Definition: MergedActionListModel.cpp:89
void itemDeleted(int index)
This signal is emitted when an item is deleted from the model.
void setHideEmptyModels(bool hide)
Sets whether the empty models should be hidden.
Definition: MergedActionListModel.cpp:376
void itemAltered(int index)
This signal is emitted when an item is altered.
void modelUpdated()
Definition: MergedActionListModel.cpp:48
virtual void setModelContextActions(int index, Lancelot::PopupMenu *menu)
Sets the actions for the context menu.
Definition: MergedActionListModel.cpp:198
void itemInserted(int index)
This signal is emitted when an item is inserted into the model.
This file is part of the KDE documentation.
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
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.