akonadi
favoritecollectionsmodel.cpp
     55         const QModelIndex collectionIdx = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
   90         //don't clear the selection model here. Otherwise we mess up the users selection as collections get removed and re-inserted.
  117         const QModelIndex index = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
  128         const QModelIndex idx = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
  143         const QModelIndex index = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
  160         const QModelIndex index = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
  221         const QList<Collection::Id> collections = configGroup.readEntry("FavoriteCollectionIds", QList<qint64>());
  237             const QModelIndex idx = EntityTreeModel::modelIndexForCollection(q->sourceModel(), Collection(collectionId));
  256 FavoriteCollectionsModel::FavoriteCollectionsModel(QAbstractItemModel *source, const KConfigGroup &group, QObject *parent)
  260     //This should only be a KRecursiveFilterProxyModel, but remains a SelectionProxyModel for backwards compatiblity.
  263     disconnect(this, SIGNAL(rootIndexAboutToBeRemoved(QModelIndex)), this, SLOT(rootIndexAboutToBeRemoved(QModelIndex)));
  272     connect(source, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(rowsInserted(QModelIndex,int,int)));
  302         const QModelIndex idx = EntityTreeModel::modelIndexForCollection(sourceModel(), Collection(colId));
  303         const Collection collection = sourceModel()->data(idx, EntityTreeModel::CollectionRole).value<Collection>();
  314 void Akonadi::FavoriteCollectionsModel::setFavoriteLabel(const Collection &collection, const QString &label)
  336         const Collection::Id collectionId = sourceModel()->data(sourceIndex, EntityTreeModel::CollectionIdRole).toLongLong();
  344 bool FavoriteCollectionsModel::setData(const QModelIndex &index, const QVariant &value, int role)
  353         const Collection collection = sourceModel()->data(sourceIndex, EntityTreeModel::CollectionRole).value<Collection>();
  368 QVariant FavoriteCollectionsModel::headerData(int section, Qt::Orientation orientation, int role) const
  379 bool FavoriteCollectionsModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
  388         const Collection destCollection = sourceModel()->data(sourceIndex, EntityTreeModel::CollectionRole).value<Collection>();
A proxy model used to reference count selected Akonadi::Collection in a view. 
Definition: selectionproxymodel.h:99
virtual bool hasFormat(const QString &mimeType) const
void setCollections(const Collection::List &collections)
Sets the collections as favorite collections. 
Definition: favoritecollectionsmodel.cpp:280
bool contains(const QString &str, Qt::CaseSensitivity cs) const
T value() const
KJob * pasteUriList(const QMimeData *mimeData, const Collection &collection, Qt::DropAction action, Session *session=0)
URI list paste/drop. 
Definition: pastehelper.cpp:307
Helper for checking MIME types of Collections and Items. 
Definition: mimetypechecker.h:109
FavoriteCollectionsModel(QAbstractItemModel *model, const KConfigGroup &group, QObject *parent=0)
Creates a new favorite collections model. 
Definition: favoritecollectionsmodel.cpp:256
int size() const
void setFavoriteLabel(const Collection &collection, const QString &label)
Sets a custom label that will be used when showing the favorite collection. 
Definition: favoritecollectionsmodel.cpp:314
bool isValid() const
void append(const T &value)
bool isEmpty() const
int removeAll(const T &value)
void addCollection(const Collection &collection)
Adds a collection to the list of favorite collections. 
Definition: favoritecollectionsmodel.cpp:286
Definition: itemfetchscope.h:29
QModelIndex parent() const
static QModelIndex modelIndexForCollection(const QAbstractItemModel *model, const Collection &collection)
Returns a QModelIndex in model which points to collection. 
Definition: entitytreemodel.cpp:1238
Collection::List collections() const 
Returns the list of favorite collections. 
Definition: favoritecollectionsmodel.cpp:298
Returns original name for collection. 
Definition: entitytreemodel.h:354
void removeCollection(const Collection &collection)
Removes a collection from the list of favorite collections. 
Definition: favoritecollectionsmodel.cpp:292
QModelIndex child(int row, int column) const
void setWantedMimeTypes(const QStringList &mimeTypes)
Sets the list of wanted MIME types this instance checks against. 
Definition: mimetypechecker.cpp:57
QString favoriteLabel(const Akonadi::Collection &col)
Return associate label for collection. 
Definition: favoritecollectionsmodel.cpp:360
QVariant data(int role) const
virtual ~FavoriteCollectionsModel()
Destroys the favorite collections model. 
Definition: favoritecollectionsmodel.cpp:275
int column() const
QStringList contentMimeTypes() const 
Returns a list of possible content mimetypes, e.g. 
Definition: collection.cpp:115
static Collection fromUrl(const KUrl &url)
Creates a collection from the given url. 
Definition: collection.cpp:172
QChar * data()
QString toString() const
QList< Collection::Id > collectionIds() const 
Returns the list of ids of favorite collections set on the FavoriteCollectionsModel. 
Definition: favoritecollectionsmodel.cpp:309
A model that lists a set of favorite collections. 
Definition: favoritecollectionsmodel.h:66
typedef ItemFlags
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.
 KDE API Reference
    KDE API Reference