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

0001 /*
0002     SPDX-FileCopyrightText: 2015-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 "libkdebugsettings_private_export.h"
0011 #include <QWidget>
0012 class KLineEdit;
0013 class QCheckBox;
0014 class CategoryTypeComboBox;
0015 class LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT ConfigureCustomSettingWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit ConfigureCustomSettingWidget(QWidget *parent = nullptr);
0020     ~ConfigureCustomSettingWidget() override;
0021 
0022     Q_REQUIRED_RESULT QString rule() const;
0023     void setRule(const QString &rule);
0024 
0025 Q_SIGNALS:
0026     void enableButton(bool state);
0027 
0028 private:
0029     void slotTextChanged(const QString &);
0030 
0031     KLineEdit *const mCategoryLineEdit;
0032     QCheckBox *const mEnableCategory;
0033     CategoryTypeComboBox *const mCategoryType;
0034 };