akonadi
collectionview.cpp
116 const Collection collection = index.model()->data(index, CollectionModel::CollectionRole).value<Collection>();
130 const Collection collection = index.model()->data(index, CollectionModel::CollectionRole).value<Collection>();
187 const QStringList supportedContentTypes = model()->data(index, CollectionModel::CollectionRole).value<Collection>().contentMimeTypes();
231 QAction *moveDropAction = popup.addAction(KIcon(QString::fromLatin1("edit-rename")), i18n("&Move here"));
232 QAction *copyDropAction = popup.addAction(KIcon(QString::fromLatin1("edit-copy")), i18n("&Copy here"));
virtual void dragMoveEvent(QDragMoveEvent *event)
QItemSelectionModel * selectionModel() const
A view to show a collection tree provided by a CollectionModel.
Definition: collectionview.h:63
const QPoint & pos() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
T value() const
void setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
Sets the KXMLGUIClient which the view is used in.
Definition: collectionview.cpp:260
bool isValid() const
AKONADI_DEPRECATED void setXmlGuiWindow(KXmlGuiWindow *xmlGuiWindow)
Sets the KXmlGuiWindow which the view is used in.
Definition: collectionview.cpp:265
void currentChanged(const Akonadi::Collection &collection)
This signal is emitted whenever the current collection in the view has changed.
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
virtual QVariant data(const QModelIndex &index, int role) const =0
QModelIndex parent() const
bool isExpanded(const QModelIndex &index) const
The actual collection object.
Definition: collectionmodel.h:66
int startDragTime()
const QAbstractItemModel * model() const
QPoint pos()
virtual void setModel(QAbstractItemModel *model)
virtual void dropEvent(QDropEvent *event)
virtual void dragLeaveEvent(QDragLeaveEvent *event)
QString fromLatin1(const char *str, int size)
QHeaderView * header() const
QAbstractItemModel * model() const
void setStretchLastSection(bool stretch)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
The collection identifier.
Definition: collectionmodel.h:65
static Collection fromUrl(const KUrl &url)
Creates a collection from the given url.
Definition: collection.cpp:172
bool itemsExpandable() const
virtual QModelIndex indexAt(const QPoint &point) const
void setSingleShot(bool singleShot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 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:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.