Akonadi Contacts
10 #include "phonelistwidget.h"
11 #include "phonewidgetlister.h"
12 #include <KContacts/Addressee>
13 #include <KLocalizedString>
15 #include <QVBoxLayout>
16 using namespace ContactEditor;
18 PhoneListWidget::PhoneListWidget(
QWidget *parent)
20 , mPhoneWidgetLister(new ContactEditor::PhoneWidgetLister(this))
23 topLayout->setContentsMargins({});
24 topLayout->setSpacing(0);
27 label->setObjectName(QStringLiteral(
"phonelistlabel"));
28 topLayout->addWidget(label);
30 mPhoneWidgetLister->setObjectName(QStringLiteral(
"phonewidgetlister"));
31 topLayout->addWidget(mPhoneWidgetLister);
34 PhoneListWidget::~PhoneListWidget() =
default;
38 mPhoneWidgetLister->loadContact(contact);
43 mPhoneWidgetLister->storeContact(contact);
46 void PhoneListWidget::setReadOnly(
bool readOnly)
48 mPhoneWidgetLister->setReadOnly(readOnly);
QString i18n(const char *text, const TYPE &arg...)
QString label(StandardShortcut id)
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.