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());
void setEditable(bool editable)
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)
count
void setCurrentIndex(int index)
currentText
QString itemText(int index) const const
void setItemText(int index, const QString &text)
Show
StyleItalic
void setStyle(Style style)
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
int row() const const
Q_OBJECTQ_OBJECT
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
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)
void setEnabled(bool)
virtual bool event(QEvent *event) override
font
height
QWidget * parentWidget() const const
void resize(const QSize &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.