File indexing completed on 2022-09-27 16:31:46

0001 /*
0002     SPDX-FileCopyrightText: 2020-2022 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #pragma once
0009 
0010 #include <QToolButton>
0011 
0012 #include "libkdebugsettings_private_export.h"
0013 class LoadGroupMenu;
0014 class LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT LoadToolButton : public QToolButton
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit LoadToolButton(QWidget *parent = nullptr);
0019     ~LoadToolButton() override;
0020 
0021     void updateLoadGroupMenu();
0022 
0023     Q_REQUIRED_RESULT QStringList groupNames() const;
0024 
0025 Q_SIGNALS:
0026     void loadGroupRequested(const QString &fullPath);
0027     void loadFromFile();
0028     void manageGroupRequested();
0029 
0030 private:
0031     LoadGroupMenu *const mLoadMenu;
0032 };