1 /* 2 SPDX-FileCopyrightText: 2016 Elvis Angelaccio <elvis.angelaccio@kde.org> 3 4 SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7 #ifndef SETTINGSDIALOG_H 8 #define SETTINGSDIALOG_H 9 10 #include "kerfuffle_export.h" 11 12 #include <KConfigDialog> 13 14 namespace Kerfuffle 15 { 16 17 /** 18 * A custom KConfigDialog that emits a signal when the Default button has been clicked. 19 */ 20 class KERFUFFLE_EXPORT SettingsDialog : public KConfigDialog 21 { 22 Q_OBJECT 23 24 public: 25 explicit SettingsDialog(QWidget *parent, const QString &name, KCoreConfigSkeleton *config); 26 27 Q_SIGNALS: 28 void defaultsButtonClicked(); 29 30 protected Q_SLOTS: 31 void updateWidgetsDefault() override; 32 33 }; 34 35 } 36 37 #endif 38