akonadi
favoritecollectionsmodel.h
80 FavoriteCollectionsModel(QAbstractItemModel *model, const KConfigGroup &group, QObject *parent = 0);
124 virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
Collection::List collections() const
Returns the list of favorite collections.
Definition favoritecollectionsmodel.cpp:298
QString favoriteLabel(const Akonadi::Collection &col)
Return associate label for collection.
Definition favoritecollectionsmodel.cpp:360
FavoriteCollectionsModel(QAbstractItemModel *model, const KConfigGroup &group, QObject *parent=0)
Creates a new favorite collections model.
Definition favoritecollectionsmodel.cpp:256
void addCollection(const Collection &collection)
Adds a collection to the list of favorite collections.
Definition favoritecollectionsmodel.cpp:286
QList< Collection::Id > collectionIds() const
Returns the list of ids of favorite collections set on the FavoriteCollectionsModel.
Definition favoritecollectionsmodel.cpp:309
void removeCollection(const Collection &collection)
Removes a collection from the list of favorite collections.
Definition favoritecollectionsmodel.cpp:292
void setCollections(const Collection::List &collections)
Sets the collections as favorite collections.
Definition favoritecollectionsmodel.cpp:280
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
A proxy model used to reference count selected Akonadi::Collection in a view.
Definition selectionproxymodel.h:100
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.