Akonadi Contacts
contactstreemodel.h
180 [[nodiscard]] QVariant entityData(const Item &item, int column, int role = Qt::DisplayRole) const override;
181 [[nodiscard]] QVariant entityData(const Collection &collection, int column, int role = Qt::DisplayRole) const override;
182 [[nodiscard]] QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const override;
A model for contacts and contact groups as available in Akonadi.
Definition contactstreemodel.h:69
void setColumns(const Columns &columns)
Sets the columns that the model should show.
Definition contactstreemodel.cpp:44
~ContactsTreeModel() override
Destroys the contacts tree model.
ContactsTreeModel(Monitor *monitor, QObject *parent=nullptr)
Creates a new contacts tree model.
Definition contactstreemodel.cpp:36
Columns columns() const
Returns the columns that the model currently shows.
Definition contactstreemodel.cpp:51
QList< Column > Columns
Describes a list of columns of the contacts tree model.
Definition contactstreemodel.h:146
@ FullName
Shows the formatted name or, if empty, the assembled name.
Definition contactstreemodel.h:80
EntityTreeModel(Monitor *monitor, QObject *parent=nullptr)
HeaderGroup
virtual QVariant entityData(const Collection &collection, int column, int role=Qt::DisplayRole) const
virtual QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const
A widget for editing the display name of a contact.
Q_OBJECTQ_OBJECT
DisplayRole
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:33 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.