akonadi/contact
customfieldsdelegate.cpp
44 QWidget *CustomFieldsDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &item, const QModelIndex &index) const
47 const CustomField::Type type = static_cast<CustomField::Type>(index.data(CustomFieldsModel::TypeRole).toInt());
97 const CustomField::Type type = static_cast<CustomField::Type>(index.data(CustomFieldsModel::TypeRole).toInt());
138 void CustomFieldsDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
141 const CustomField::Type type = static_cast<CustomField::Type>(index.data(CustomFieldsModel::TypeRole).toInt());
179 void CustomFieldsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const
void setDisplayFormat(const QString &format)
void setDate(const QDate &date)
QTime fromString(const QString &string, Qt::DateFormat format)
QDate fromString(const QString &string, Qt::DateFormat format)
QString number(int n, int base)
int toInt(bool *ok) const
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
QDateTime fromString(const QString &string, Qt::DateFormat format)
void setChecked(bool)
void setDateTime(const QDateTime &dateTime)
QVariant data(int role) const
void setValue(int val)
void setFrame(bool)
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
int column() const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
void setAutoFillBackground(bool enabled)
void setTime(const QTime &time)
QString toString() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:19 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:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.