File indexing completed on 2024-12-01 04:36:51
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqolawidgets_private_export.h" 0010 #include <QComboBox> 0011 class LIBRUQOLAWIDGETS_TESTS_EXPORT ServersComboBox : public QComboBox 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit ServersComboBox(QWidget *parent = nullptr); 0016 ~ServersComboBox() override; 0017 0018 void addServerList(const QStringList &serverNames); 0019 0020 Q_SIGNALS: 0021 void accountSelected(const QString &accountName); 0022 0023 private: 0024 LIBRUQOLAWIDGETS_NO_EXPORT void slotSelectAccount(int index); 0025 };