Akonadi Contacts
11#include "customfields_p.h"
13#include <QAbstractItemModel>
16class CustomFieldsModel :
public QAbstractItemModel
25 explicit CustomFieldsModel(
QObject *parent =
nullptr);
26 ~CustomFieldsModel()
override;
28 void setCustomFields(
const CustomField::List &addresses);
29 [[nodiscard]] CustomField::List customFields()
const;
31 QModelIndex index(
int row,
int col,
const QModelIndex &parent = QModelIndex())
const override;
32 QModelIndex
parent(
const QModelIndex &child)
const override;
33 QVariant data(
const QModelIndex &index,
int role)
const override;
34 bool setData(
const QModelIndex &index,
const QVariant &value,
int role =
Qt::EditRole)
override;
35 QVariant headerData(
int section,
Qt::Orientation orientation,
int role)
const override;
37 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
38 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
40 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex())
override;
41 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex())
override;
44 CustomField::List mCustomFields;
A widget for editing the display name of a contact.
QObject * parent() const const
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
KDE's Doxygen guidelines are available online.