Akonadi Contacts

mailtypecombobox.cpp
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#include "mailtypecombobox.h"
10
11#include <KContacts/Email>
12#include <KLocalizedString>
13
14using namespace Akonadi;
15
16MailTypeCombobox::MailTypeCombobox(QWidget *parent)
17 : Akonadi::ContactEditorComboBox(parent)
18{
19 addItem(i18n("Select..."), QVariant());
20 addItem(i18n("Home"), (int)KContacts::Email::Home);
21 addItem(i18n("Work"), (int)KContacts::Email::Work);
22 addItem(i18n("Other"), (int)KContacts::Email::Other);
23}
24
25MailTypeCombobox::~MailTypeCombobox() = default;
26
27#include "moc_mailtypecombobox.cpp"
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.