File indexing completed on 2024-12-22 04:40:00
0001 /* 0002 SPDX-FileCopyrightText: 2015 Martin Steghöfer <martin@steghoefer.eu> 0003 SPDX-FileCopyrightText: 2015-2022 Mladen Milinkovic <max@smoothware.net> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef CONFIGDIALOG_H 0009 #define CONFIGDIALOG_H 0010 0011 #include <KConfigDialog> 0012 0013 #include <sonnet/configwidget.h> 0014 0015 namespace SubtitleComposer { 0016 0017 class ConfigDialog : public KConfigDialog 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 ConfigDialog(QWidget *parent, const QString &name, KCoreConfigSkeleton *config); 0023 0024 public slots: 0025 void widgetChanged(); 0026 0027 public: 0028 void updateSettings() override; 0029 0030 protected: 0031 bool hasChanged() override; 0032 0033 private: 0034 bool m_hasWidgetChanged; 0035 Sonnet::ConfigWidget *m_sonnetConfigWidget; 0036 }; 0037 0038 } 0039 0040 #endif