Akonadi Contacts
10 #include "nicknamewidget.h"
11 #include <KContacts/Addressee>
13 #include <KLocalizedString>
15 #include <QVBoxLayout>
16 using namespace ContactEditor;
18 NicknameWidget::NicknameWidget(
QWidget *parent)
23 topLayout->setContentsMargins({});
24 topLayout->setObjectName(QStringLiteral(
"mainlayout"));
25 auto nickNameLabel =
new QLabel(
i18n(
"Nickname"),
this);
26 nickNameLabel->setObjectName(QStringLiteral(
"nicknamelabel"));
27 topLayout->addWidget(nickNameLabel);
29 mNickName->setTrapReturnKey(
true);
30 mNickName->setPlaceholderText(
i18n(
"Add a Nickname"));
31 mNickName->setObjectName(QStringLiteral(
"nickname"));
32 topLayout->addWidget(mNickName);
35 NicknameWidget::~NicknameWidget() =
default;
39 mNickName->setText(contact.
nickName());
47 void NicknameWidget::setReadOnly(
bool readOnly)
49 mNickName->setReadOnly(readOnly);
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.