akonadi
entitytreeview.cpp
79 Akonadi::ProgressSpinnerDelegate *customDelegate = new Akonadi::ProgressSpinnerDelegate(animator, mParent);
110 void EntityTreeView::Private::slotSelectionChanged(const QItemSelection &selected, const QItemSelection &)
142 const Collection collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>();
159 const Collection collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>();
176 const Collection collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>();
259 if (d->mDragDropManager->processDropEvent(event, menuCanceled, (dropIndicatorPosition() == QAbstractItemView::OnItem))) {
282 QMenu *popup = static_cast<QMenu *>(d->mXmlGuiClient->factory()->container(popupName, d->mXmlGuiClient));
virtual void dragMoveEvent(QDragMoveEvent *event)
DropIndicatorPosition dropIndicatorPosition() const
void setSelectionMode(QAbstractItemView::SelectionMode mode)
QItemSelectionModel * selectionModel() const
void setDefaultPopupMenu(const QString &name)
Set the name of the default popup menu (retrieved from the application's XMLGUI file).
Definition: entitytreeview.cpp:338
QModelIndex bottomRight() const
T value() const
QWidget * viewport() const
bool isManualSortingActive() const
Return true if we use an manual sorting Necessary to fix dnd menu We must show just move when we move...
Definition: entitytreeview.cpp:329
void setManualSortingActive(bool active)
Set true if we automatic sorting.
Definition: entitytreeview.cpp:322
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
int size() const
void setExpanded(const QModelIndex &index, bool expanded)
const char * name() const
bool isValid() const
KXMLGUIClient * xmlGuiClient() const
Return the XML GUI client which the view is used in.
Definition: entitytreeview.cpp:294
virtual void timerEvent(QTimerEvent *event)
A view to show an item/collection tree provided by an EntityTreeModel.
Definition: entitytreeview.h:71
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 setDropActionMenuEnabled(bool enabled)
Sets whether the drop action menu is enabled and will be shown on drop operation. ...
Definition: entitytreeview.cpp:306
int row() const
bool isDropActionMenuEnabled() const
Returns whether the drop action menu is enabled and will be shown on drop operation.
Definition: entitytreeview.cpp:313
QPoint pos() const
virtual QVariant data(const QModelIndex &index, int role) const =0
T & first()
QRect rect() const
State state() const
int startDragTime()
const QAbstractItemModel * model() const
QPoint pos()
typedef DropActions
QModelIndex sibling(int row, int column) const
virtual void setModel(QAbstractItemModel *model)
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual void dropEvent(QDropEvent *event)
QPoint mapFromGlobal(const QPoint &pos) const
int column() const
virtual void fetchMore(const QModelIndex &parent)
int timerId() const
virtual void setModel(QAbstractItemModel *model)
Definition: entitytreeview.cpp:209
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)
void setXmlGuiClient(KXMLGUIClient *xmlGuiClient)
Sets the XML GUI client which the view is used in.
Definition: entitytreeview.cpp:289
QObject * parent() const
void currentChanged(const Akonadi::Collection &collection)
This signal is emitted whenever the current collection in the view has changed.
virtual QModelIndex indexAt(const QPoint &point) const
QModelIndex topLeft() const
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.