Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9abba04c authored by Laurent Montel's avatar Laurent Montel

Return email

parent 652e37a1
......@@ -30,8 +30,7 @@ SelectMailWidget::SelectMailWidget(QWidget *parent)
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setMargin(0);
//TODO customize it
mView = new Akonadi::EmailAddressSelectionWidget(this);
mView = new Akonadi::EmailAddressSelectionWidget(true, nullptr, this);
layout->addWidget(mView);
mView->view()->setSelectionMode(QAbstractItemView::ExtendedSelection);
mView->view()->setAlternatingRowColors(true);
......@@ -48,7 +47,7 @@ QStringList SelectMailWidget::selectedEmails() const
{
QStringList lst;
for (const Akonadi::EmailAddressSelection &selection : mView->selectedAddresses()) {
lst.append(selection.quotedEmail());
lst.append(selection.email());
}
return lst;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment