Akonadi Contacts
10#include "messaginglistwidget.h"
11#include "messagingwidgetlister.h"
12#include <KContacts/Addressee>
13#include <KLocalizedString>
18MessagingListWidget::MessagingListWidget(
QWidget *parent)
20 , mMessagingWidgetLister(new
Akonadi::MessagingWidgetLister(this))
23 topLayout->setContentsMargins({});
24 topLayout->setSpacing(0);
28 topLayout->addWidget(label);
29 mMessagingWidgetLister->setObjectName(
QLatin1StringView(
"messagingwidgetlister"));
30 topLayout->addWidget(mMessagingWidgetLister);
33MessagingListWidget::~MessagingListWidget() =
default;
37 mMessagingWidgetLister->loadContact(contact);
40void MessagingListWidget::storeContact(KContacts::Addressee &contact)
const
42 mMessagingWidgetLister->storeContact(contact);
45void MessagingListWidget::setReadOnly(
bool readOnly)
47 mMessagingWidgetLister->setReadOnly(readOnly);
50#include "moc_messaginglistwidget.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
QString label(StandardShortcut id)
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
KDE's Doxygen guidelines are available online.