File indexing completed on 2024-12-01 04:36:51

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "libruqolawidgets_private_export.h"
0009 #include <QComboBox>
0010 class RolesModel;
0011 class RoleInfo;
0012 class LIBRUQOLAWIDGETS_TESTS_EXPORT RolesComboBox : public QComboBox
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit RolesComboBox(QWidget *parent = nullptr);
0017     ~RolesComboBox() override;
0018 
0019     void setRoles(const QStringList &lst);
0020     [[nodiscard]] QStringList roles() const;
0021 
0022     void setRolesInfo(const QVector<RoleInfo> &roleInfo);
0023 
0024 private:
0025     RolesModel *const mRolesModel;
0026 };