File indexing completed on 2024-05-05 05:50:42

0001 /*
0002     SPDX-FileCopyrightText: 2016 Elvis Angelaccio <elvis.angelaccio@kde.org>
0003 
0004     SPDX-License-Identifier: BSD-2-Clause
0005 */
0006 
0007 #ifndef SETTINGSDIALOG_H
0008 #define SETTINGSDIALOG_H
0009 
0010 #include "kerfuffle_export.h"
0011 
0012 #include <KConfigDialog>
0013 
0014 namespace Kerfuffle
0015 {
0016 /**
0017  * A custom KConfigDialog that emits a signal when the Default button has been clicked.
0018  */
0019 class KERFUFFLE_EXPORT SettingsDialog : public KConfigDialog
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit SettingsDialog(QWidget *parent, const QString &name, KCoreConfigSkeleton *config);
0025 
0026 Q_SIGNALS:
0027     void defaultsButtonClicked();
0028 
0029 protected Q_SLOTS:
0030     void updateWidgetsDefault() override;
0031 };
0032 
0033 }
0034 
0035 #endif