liblancelot
Go to the documentation of this file.
20 #ifndef LANCELOT_ACTION_LIST_MODEL_H
21 #define LANCELOT_ACTION_LIST_MODEL_H
23 #include <QtCore/QMimeData>
24 #include <QtCore/QString>
25 #include <QtGui/QIcon>
26 #include <QtGui/QAction>
54 virtual QString title(
int index)
const = 0;
60 virtual QString description(
int index)
const;
66 virtual QIcon icon(
int index)
const;
72 virtual QMimeData * mimeData(
int index)
const;
79 virtual void dataDragFinished(
int index, Qt::DropAction action);
87 virtual bool dataDropAvailable(
int where,
const QMimeData * mimeData);
94 virtual void dataDropped(
int where,
const QMimeData * mimeData);
101 virtual void setDropActions(
int index,
Qt::DropActions & actions, Qt::DropAction & defaultAction);
107 virtual bool isCategory(
int index)
const;
112 virtual int size()
const = 0;
118 virtual bool hasContextActions(
int index)
const;
132 virtual void contextActivate(
int index,
QAction * context);
134 virtual QString selfTitle()
const;
135 virtual QString selfShortTitle()
const;
136 virtual QIcon selfIcon()
const;
137 virtual QMimeData * selfMimeData()
const;
144 void activated(
int index);
151 void itemActivated(
int index);
164 void itemInserted(
int index);
170 void itemDeleted(
int index);
176 void itemAltered(
int index);
184 virtual void activate(
int index);
This class represents a list data 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
KDE's Doxygen guidelines are available online.