mailcommon
foldertreewidgetproxymodel.cpp
Go to the documentation of this file.
108 const Akonadi::Collection collection = sourceModel()->data( rowIndex, Akonadi::EntityTreeModel::CollectionRole ).value<Akonadi::Collection>();
110 const Akonadi::AgentInstance instance = Akonadi::AgentManager::self()->instance( collection.resource() );
112 return KRecursiveFilterProxyModel::flags( sourceIndex ) & ~( Qt::ItemIsSelectable | Qt::ItemIsEnabled );
128 setAccessRights( Akonadi::Collection::CanCreateItem | Akonadi::Collection::CanCreateCollection );
170 bool FolderTreeWidgetProxyModel::acceptRow( int sourceRow, const QModelIndex &sourceParent ) const
void setHideOutboxFolder(bool hide)
Definition: foldertreewidgetproxymodel.cpp:159
void setEnabledCheck(bool enable)
Definition: foldertreewidgetproxymodel.cpp:120
virtual Qt::ItemFlags flags(const QModelIndex &index) const
void readConfig()
Definition: foldertreewidgetproxymodel.cpp:89
FolderTreeWidgetProxyModel(QObject *parent=0, FolderTreeWidgetProxyModelOptions=FolderTreeWidgetProxyModel::None)
Definition: foldertreewidgetproxymodel.cpp:64
T value() const
MAILCOMMON_EXPORT bool isVirtualCollection(const Akonadi::Collection &col)
Definition: mailutil.cpp:97
void addContentMimeTypeInclusionFilter(const QString &mimeTypes)
Definition: foldertreewidgetproxymodel.cpp:261
bool hideOutboxFolder() const
Definition: foldertreewidgetproxymodel.cpp:165
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: foldertreewidgetproxymodel.cpp:103
void setHideSpecificFolder(bool hide)
Definition: foldertreewidgetproxymodel.cpp:148
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: foldertreewidgetproxymodel.cpp:214
int row() const
bool hideVirtualFolder() const
Definition: foldertreewidgetproxymodel.cpp:143
bool hideSpecificFolder() const
Definition: foldertreewidgetproxymodel.cpp:154
virtual ~FolderTreeWidgetProxyModel()
Definition: foldertreewidgetproxymodel.cpp:84
void setFilterFolder(const QString &filter)
Definition: foldertreewidgetproxymodel.cpp:208
void setHideVirtualFolder(bool exclude)
Definition: foldertreewidgetproxymodel.cpp:137
static QSharedPointer< FolderCollection > forCollection(const Akonadi::Collection &coll, bool writeConfig=true)
Definition: foldercollection.cpp:46
QVariant data(int role) const
Definition: foldertreewidgetproxymodel.h:35
virtual bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const
Definition: foldertreewidgetproxymodel.cpp:170
QModelIndex sibling(int row, int column) const
Definition: foldertreewidgetproxymodel.h:36
Akonadi::Collection outboxCollectionFolder()
Definition: mailkernel.cpp:106
bool enabledCheck() const
Definition: foldertreewidgetproxymodel.cpp:132
void updatePalette()
Definition: foldertreewidgetproxymodel.cpp:252
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 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:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.