Akonadi Contacts

webselecttypecombobox.cpp
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #include "webselecttypecombobox.h"
10 
11 #include <KContacts/ResourceLocatorUrl>
12 
13 #include <KLocalizedString>
14 
15 using namespace ContactEditor;
16 
17 WebSelectTypeCombobox::WebSelectTypeCombobox(QWidget *parent)
18  : ContactEditor::ContactEditorComboBox(parent)
19 {
20  addItem(i18n("Select..."), QString());
21  addItem(i18n("Home"), (int)KContacts::ResourceLocatorUrl::Home);
22  addItem(i18n("Work"), (int)KContacts::ResourceLocatorUrl::Work);
23  addItem(i18n("Profile"), (int)KContacts::ResourceLocatorUrl::Profile);
24  addItem(i18n("Other"), (int)KContacts::ResourceLocatorUrl::Other);
25 }
26 
27 WebSelectTypeCombobox::~WebSelectTypeCombobox() = 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 Fri Jun 18 2021 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.