File indexing completed on 2022-11-23 12:34:59

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 <QWidget>
0011 
0012 #include "libkdebugsettings_private_export.h"
0013 class QListWidget;
0014 class QListWidgetItem;
0015 class LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT GroupManagementWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit GroupManagementWidget(QWidget *parent = nullptr);
0020     ~GroupManagementWidget() override;
0021 
0022 private Q_SLOTS:
0023     void slotCustomContextMenu();
0024 
0025 Q_SIGNALS:
0026     void groupsChanged();
0027 
0028 private:
0029     enum { FullPathRole = Qt::UserRole + 1 };
0030     void init();
0031     QListWidget *const mListWidget;
0032     void renameGroup(QListWidgetItem *item);
0033 };