liblancelot
Go to the documentation of this file.
20 #ifndef LANCELOT_MERGED_ACTION_LIST_MODEL_H
21 #define LANCELOT_MERGED_ACTION_LIST_MODEL_H
23 #include <QtCore/QPair>
55 void addModel(QIcon icon,
const QString & title,
ActionListModel * model);
74 void removeModel(
int index);
79 int modelCount()
const;
87 virtual QMimeData * modelMimeData(
int index)
const;
95 virtual void modelDataDropped(
int index, Qt::DropAction action);
105 virtual void setModelDropActions(
int index,
106 Qt::DropActions & actions, Qt::DropAction & defaultAction);
114 virtual bool hasModelContextActions(
int index)
const;
131 virtual void modelContextActivate(
int index, QAction * context);
134 L_Override QString description(
int index)
const;
136 L_Override QMimeData * mimeData(
int index)
const;
137 L_Override void dataDragFinished(
int index, Qt::DropAction action);
138 L_Override void setDropActions(
int index, Qt::DropActions & actions, Qt::DropAction & defaultAction);
141 L_Override bool hasContextActions(
int index)
const;
143 L_Override void contextActivate(
int index, QAction * context);
145 L_Override bool dataDropAvailable(
int where,
const QMimeData * mimeData);
146 L_Override void dataDropped(
int where,
const QMimeData * mimeData);
151 bool hideEmptyModels()
const;
156 void setHideEmptyModels(
bool hide);
161 bool showModelTitles()
const;
166 void setShowModelTitles(
bool show);
174 void modelItemInserted(
int index);
175 void modelItemDeleted(
int index);
176 void modelItemAltered(
int index);
This class represents a list data model.
This class implements a model that merges a list of other models.
This file is part of the KDE documentation.
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.