Akonadi Contacts
displaynameeditwidget.cpp
23 if (contact.formattedName() == (contact.givenName() + QLatin1Char(' ') + contact.familyName())) {
27 } else if (contact.formattedName() == (contact.familyName() + QLatin1StringView(", ") + contact.givenName())) {
29 } else if (contact.formattedName() == (contact.familyName() + QLatin1Char(' ') + contact.givenName())) {
67 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
70 const QRect rect(option.rect.width() - mMaxDescriptionWidth, option.rect.y(), mMaxDescriptionWidth, option.rect.height());
105 mView->addItems(QStringList() << QString() << QString() << QString() << QString() << QString() << QString());
QString familyName() const
void setOrganization(const QString &organization)
QString organization() const
QString assembledName() const
QString formattedName() const
QString givenName() const
void setFormattedName(const QString &formattedName)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
void activated(int index)
Show
StyleItalic
void setStyle(Style style)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
int row() const const
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
virtual bool event(QEvent *e)
virtual bool eventFilter(QObject *watched, QEvent *event)
QObject * parent() const const
void drawText(const QPoint &position, const QString &text)
const QFont & font() const const
void restore()
void save()
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
Normal
BrightText
void setWidth(int width)
int width() const const
State_Selected
QStyledItemDelegate(QObject *parent)
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const const override
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const const override
AlignLeft
QueuedConnection
StrongFocus
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QWidget(QWidget *parent, Qt::WindowFlags f)
font
QWidget * parentWidget() 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
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.