File indexing completed on 2024-12-01 04:37:03

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "usersinroomcombobox.h"
0008 #include <KLocalizedString>
0009 
0010 UsersInRoomComboBox::UsersInRoomComboBox(QWidget *parent)
0011     : QComboBox(parent)
0012 {
0013     fillCombobox();
0014 }
0015 
0016 UsersInRoomComboBox::~UsersInRoomComboBox() = default;
0017 
0018 void UsersInRoomComboBox::fillCombobox()
0019 {
0020     addItem(i18n("All"), QString());
0021     addItem(i18n("Connected"), QStringLiteral("online"));
0022     addItem(i18n("Disconnected"), QStringLiteral("offline"));
0023     addItem(i18n("Away"), QStringLiteral("away"));
0024     addItem(i18n("Busy"), QStringLiteral("busy"));
0025 }
0026 
0027 #include "moc_usersinroomcombobox.cpp"