akonadi
contactsfilterproxymodel.cpp
31 static bool contactGroupMatchesFilter( const KABC::ContactGroup &group, const QString &filterString );
71 const Akonadi::Collection collection = index.data( Akonadi::EntityTreeModel::CollectionRole ).value<Akonadi::Collection>();
81 const Akonadi::Item item = index.data( Akonadi::EntityTreeModel::ItemRole ).value<Akonadi::Item>();
105 bool ContactsFilterProxyModel::lessThan( const QModelIndex &leftIndex, const QModelIndex &rightIndex ) const
143 const Akonadi::Collection collection = index.data( Akonadi::EntityTreeModel::CollectionRole ).value<Akonadi::Collection>();
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
virtual ~ContactsFilterProxyModel()
Destroys the contacts filter proxy model.
Definition: contactsfilterproxymodel.cpp:56
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
void setFilterString(const QString &filter)
Sets the filter that is used to filter for matching contacts and contact groups.
Definition: contactsfilterproxymodel.cpp:61
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
virtual Qt::ItemFlags flags(const QModelIndex &index) const
void setFilterFlags(ContactsFilterProxyModel::FilterFlags flags)
Sets the filter flags.
Definition: contactsfilterproxymodel.cpp:124
const T & at(int i) const
T value() const
int month() const
The QDate object for the current index.
Definition: contactstreemodel.h:162
bool isValid() const
int count(const T &value) const
int day() const
bool isValid() const
void invalidateFilter()
void setDynamicSortFilter(bool enable)
void setExcludeVirtualCollections(bool exclude)
Sets whether we want virtual collections to be filtered or not.
Definition: contactsfilterproxymodel.cpp:129
QDate toDate() const
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
QAbstractItemModel * sourceModel() const
QVariant data(int role) const
ContactsFilterProxyModel(QObject *parent=0)
Creates a new contacts filter proxy model.
Definition: contactsfilterproxymodel.cpp:48
void setSortLocaleAware(bool on)
bool isVirtual() const
Returns whether the collection is virtual, for example a search collection.
Definition: collection.cpp:261
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:02 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:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.