akonadi/contact
displaynameeditwidget.cpp
38 if (contact.formattedName() == (contact.givenName() + QLatin1Char(' ') + contact.familyName())) {
42 } else if (contact.formattedName() == (contact.familyName() + QLatin1String(", ") + contact.givenName())) {
44 } else if (contact.formattedName() == (contact.familyName() + QLatin1Char(' ') + contact.givenName())) {
82 virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
85 const QRect rect(option.rect.width() - mMaxDescriptionWidth, option.rect.y(), mMaxDescriptionWidth, option.rect.height());
247 QMetaObject::invokeMethod(this, "setComboBoxEditable", Qt::QueuedConnection, Q_ARG(bool, mDisplayType == CustomName));
Type type() const
int width() const
Let the user input a display name.
Definition: displaynameeditwidget.h:51
const QFont & font() const
A name of the form: prefix givenName additionalName familyName suffix.
Definition: displaynameeditwidget.h:47
void save()
A name of the form: familyName givenName.
Definition: displaynameeditwidget.h:49
void resize(int w, int h)
void setFont(const QFont &font)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
A name of the form: familyName, givenName.
Definition: displaynameeditwidget.h:48
void setStyle(Style style)
void setPen(const QColor &color)
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setWidth(int width)
int row() const
A name of the form: givenName familyName.
Definition: displaynameeditwidget.h:46
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
void drawText(const QPointF &position, const QString &text)
virtual bool eventFilter(QObject *watched, QEvent *event)
void setMargin(int margin)
font
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
void restore()
QWidget * parentWidget() const
QObject * parent() const
void setSpacing(int spacing)
height
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.