File indexing completed on 2023-05-30 10:45:27

0001 /*
0002     SPDX-FileCopyrightText: 2010 Peter Hedlund <peter.hedlund@kdemail.net>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef KWQTUTORPREFS_H
0007 #define KWQTUTORPREFS_H
0008 
0009 #include <KActionCollection>
0010 #include <KConfigDialog>
0011 #include <KShortcutsEditor>
0012 
0013 class KConfigSkeleton;
0014 
0015 /**
0016   *@author Peter Hedlund
0017 */
0018 
0019 class PrefTutor;
0020 
0021 class KWQTutorPrefs : public KConfigDialog
0022 {
0023   Q_OBJECT
0024 public:
0025   KWQTutorPrefs(QWidget *parent, const QString & name, KConfigSkeleton *config,
0026         KActionCollection *actionCollection);
0027 
0028 protected Q_SLOTS:
0029   void updateSettings() override;
0030   void updateWidgetsDefault() override;
0031   void slotEnableApplyButton();
0032 
0033 protected:
0034   bool hasChanged() override;
0035 
0036 private:
0037   PrefTutor *m_prefTutor;
0038   KConfigSkeleton * m_config;
0039   KShortcutsEditor* m_shortcutsWidget;
0040 };
0041 
0042 #endif