akonadi
entitylistview.cpp
97 const Collection collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
114 const Collection collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
131 const Collection collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
218 const Collection collection = model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
virtual void setModel(QAbstractItemModel *model)
Definition: entitylistview.cpp:164
void setSelectionMode(QAbstractItemView::SelectionMode mode)
QItemSelectionModel * selectionModel() const
KXMLGUIClient * xmlGuiClient() const
Return the XML GUI client which the view is used in.
Definition: entitylistview.cpp:238
virtual void setModel(QAbstractItemModel *model)
void currentChanged(const Akonadi::Collection &collection)
This signal is emitted whenever the current collection in the view has changed.
void setDropActionMenuEnabled(bool enabled)
Sets whether the drop action menu is enabled and will be shown on drop operation. ...
Definition: entitylistview.cpp:250
T value() const
void setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
Sets the XML GUI client which the view is used in.
Definition: entitylistview.cpp:233
EntityListView(QWidget *parent=0)
Creates a new favorite collections view.
Definition: entitylistview.cpp:142
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool isDropActionMenuEnabled() const
Returns whether the drop action menu is enabled and will be shown on drop operation.
Definition: entitylistview.cpp:257
bool isValid() const
static void widgetNeedsAkonadi(QWidget *widget)
Disable the given widget when Akonadi is not operational and show an error overlay (given enough spac...
Definition: control.cpp:264
void setEditTriggers(QFlags< QAbstractItemView::EditTrigger > triggers)
virtual QVariant data(const QModelIndex &index, int role) const =0
virtual void dragMoveEvent(QDragMoveEvent *e)
virtual void dropEvent(QDropEvent *e)
A view to show an item/collection list provided by an EntityTreeModel.
Definition: entitylistview.h:75
virtual QModelIndex indexAt(const QPoint &p) const
const QAbstractItemModel * model() const
typedef DropActions
QAbstractItemModel * model() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
A model that lists a set of favorite collections.
Definition: favoritecollectionsmodel.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 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:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.