KPeople 5.109.0
Properties | Public Member Functions | List of all members
KPeople::PersonsSortFilterProxyModel

Helps filtering and sorting PersonsModel. More...

#include <personssortfilterproxymodel.h>

Properties

QStringList requiredProperties
 Specifies the properties that should be provided by the contact for the contact to be shown.
 

Public Member Functions

 PersonsSortFilterProxyModel (QObject *parent=nullptr)
 
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 
QStringList requiredProperties () const
 
void setRequiredProperties (const QStringList &props)
 
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override
 

Detailed Description

Helps filtering and sorting PersonsModel.

Especially useful for creating interfaces around specific properties rather than the complete set as a whole.

See also
PersonsModel
Since
5.12

Property Documentation

◆ requiredProperties

QStringList KPeople::PersonsSortFilterProxyModel::requiredProperties
readwrite

Specifies the properties that should be provided by the contact for the contact to be shown.