Akonadi Contacts

mailtypecombobox.cpp
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
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 
14 using namespace ContactEditor;
15 
16 MailTypeCombobox::MailTypeCombobox(QWidget *parent)
17  : ContactEditor::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 
25 MailTypeCombobox::~MailTypeCombobox() = default;
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jun 22 2021 23:08:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.