public:
SettingsPage(QString category, QString name, QWidget *parent = nullptr);
- ~SettingsPage() override {};
//! The category of this settings page.
inline virtual QString category() const { return _category; }
virtual void defaults();
protected slots:
- //! Calling this slot is equivalent to calling setChangedState(true).
- inline void changed() { setChangedState(true); }
-
//! This should be called whenever the widget state changes from unchanged to change or the other way round.
void setChangedState(bool hasChanged = true);