Akonadi
entitylistview.cpp
64 mParent->connect(mParent, &QAbstractItemView::doubleClicked, mParent, [this](const auto &index) {
81 const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
98 const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
115 const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
155 connect(selectionModel(), &QItemSelectionModel::currentChanged, this, [this](const QModelIndex &index) {
193 const auto collection = model()->data(index, EntityTreeModel::CollectionRole).value<Collection>();
195 popup = static_cast<QMenu *>(d->mXmlGuiClient->factory()->container(QStringLiteral("akonadi_favoriteview_contextmenu"), d->mXmlGuiClient));
198 static_cast<QMenu *>(d->mXmlGuiClient->factory()->container(QStringLiteral("akonadi_favoriteview_emptyselection_contextmenu"), d->mXmlGuiClient));
static void widgetNeedsAkonadi(QWidget *widget)
Disable the given widget when Akonadi is not operational and show an error overlay (given enough spac...
Definition controlgui.cpp:243
void setDropActionMenuEnabled(bool enabled)
Sets whether the drop action menu is enabled and will be shown on drop operation.
Definition entitylistview.cpp:224
void setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
Sets the XML GUI client which the view is used in.
Definition entitylistview.cpp:207
bool isDropActionMenuEnabled() const
Returns whether the drop action menu is enabled and will be shown on drop operation.
Definition entitylistview.cpp:231
void setModel(QAbstractItemModel *model) override
Definition entitylistview.cpp:147
KXMLGUIClient * xmlGuiClient() const
Return the XML GUI client which the view is used in.
Definition entitylistview.cpp:212
EntityListView(QWidget *parent=nullptr)
Creates a new favorite collections view.
Definition entitylistview.cpp:126
Helper integration between Akonadi and Qt.
virtual QVariant data(const QModelIndex &index, int role) const const=0
DragDrop
EditKeyPressed
SingleSelection
void clicked(const QModelIndex &index)
void doubleClicked(const QModelIndex &index)
QAbstractItemModel * model() const const
void setSelectionMode(QAbstractItemView::SelectionMode mode)
QItemSelectionModel * selectionModel() const const
virtual void setModel(QAbstractItemModel *model)
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
QListView(QWidget *parent)
virtual void dragMoveEvent(QDragMoveEvent *e) override
virtual void dropEvent(QDropEvent *event) override
virtual bool event(QEvent *e) override
virtual QModelIndex indexAt(const QPoint &p) const const override
bool isValid() const const
const QAbstractItemModel * model() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
virtual bool event(QEvent *e)
QObject * parent() const const
IgnoreAction
T value() const const
enabled
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.