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
void readConfig()
Definition: foldertreewidgetproxymodel.cpp:89
FolderTreeWidgetProxyModel(QObject *parent=0, FolderTreeWidgetProxyModelOptions=FolderTreeWidgetProxyModel::None)
Definition: foldertreewidgetproxymodel.cpp:64
MAILCOMMON_EXPORT bool isVirtualCollection(const Akonadi::Collection &col)
Definition: mailutil.cpp:96
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
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
Definition: foldertreewidgetproxymodel.h:35
virtual bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const
Definition: foldertreewidgetproxymodel.cpp:170
Definition: foldertreewidgetproxymodel.h:36
Akonadi::Collection outboxCollectionFolder()
Definition: mailkernel.cpp:99
bool enabledCheck() const
Definition: foldertreewidgetproxymodel.cpp:132
void updatePalette()
Definition: foldertreewidgetproxymodel.cpp:252
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.