File indexing completed on 2024-05-12 16:27:15

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "showattachmentcombobox.h"
0008 #include <KLocalizedString>
0009 ShowAttachmentComboBox::ShowAttachmentComboBox(QWidget *parent)
0010     : QComboBox(parent)
0011 {
0012     fillCombobox();
0013 }
0014 
0015 ShowAttachmentComboBox::~ShowAttachmentComboBox() = default;
0016 
0017 void ShowAttachmentComboBox::fillCombobox()
0018 {
0019     addItem(i18n("All"), QString());
0020     addItem(i18n("Videos"), QStringLiteral("video"));
0021     addItem(i18n("Images"), QStringLiteral("image"));
0022     addItem(i18n("Audios"), QStringLiteral("audio"));
0023     addItem(i18n("Texts"), QStringLiteral("text"));
0024     addItem(i18n("Files"), QStringLiteral("application"));
0025 }
0026 
0027 #include "moc_showattachmentcombobox.cpp"