Akonadi Contacts

webselecttypecombobox.cpp
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
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
15using namespace Akonadi;
16
17WebSelectTypeCombobox::WebSelectTypeCombobox(QWidget *parent)
18 : Akonadi::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
27WebSelectTypeCombobox::~WebSelectTypeCombobox() = default;
28
29#include "moc_webselecttypecombobox.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 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.