akonadi/contact
22#ifndef CUSTOMFIELDSMODEL_H
23#define CUSTOMFIELDSMODEL_H
25#include "../customfields_p.h"
27#include <QtCore/QAbstractItemModel>
28#include <QtCore/QVector>
30class CustomFieldsModel :
public QAbstractItemModel
34 TypeRole = Qt::UserRole,
38 explicit CustomFieldsModel(QObject *parent = 0);
41 void setCustomFields(
const CustomField::List &addresses);
42 CustomField::List customFields()
const;
44 virtual QModelIndex index(
int row,
int col,
const QModelIndex &parent = QModelIndex())
const;
45 virtual QModelIndex parent(
const QModelIndex &child)
const;
46 virtual QVariant data(
const QModelIndex &index,
int role)
const;
47 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
48 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
49 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
50 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
51 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
53 virtual bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
54 virtual bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
57 CustomField::List mCustomFields;
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.