diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-07-16 00:30:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-07-16 00:30:32 +0200 |
commit | e2ee6d6d254285284f07b07cb60409fbda0bf7ad (patch) | |
tree | 30810ad496b34ae949aba3a72efb0a0363e8b718 /libsettings/include/setting.h | |
parent | b5450042b5f9ddaad7585f644591b7d009aeb5cb (diff) | |
download | MultiMC-e2ee6d6d254285284f07b07cb60409fbda0bf7ad.tar MultiMC-e2ee6d6d254285284f07b07cb60409fbda0bf7ad.tar.gz MultiMC-e2ee6d6d254285284f07b07cb60409fbda0bf7ad.tar.lz MultiMC-e2ee6d6d254285284f07b07cb60409fbda0bf7ad.tar.xz MultiMC-e2ee6d6d254285284f07b07cb60409fbda0bf7ad.zip |
Finalize the instance settings dialog, add setting reset mechanism
Diffstat (limited to 'libsettings/include/setting.h')
-rw-r--r-- | libsettings/include/setting.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsettings/include/setting.h b/libsettings/include/setting.h index 36709729..a161ab50 100644 --- a/libsettings/include/setting.h +++ b/libsettings/include/setting.h @@ -84,6 +84,12 @@ signals: */ void settingChanged(const Setting &setting, QVariant value); + /*! + * \brief Signal emitted when this Setting object's value resets to default. + * \param setting A reference to the Setting that changed. + */ + void settingReset(const Setting &setting); + public slots: /*! * \brief Changes the setting's value. @@ -93,6 +99,13 @@ public slots: */ virtual void set(QVariant value); + /*! + * \brief Reset the setting to default + * This is done by emitting the settingReset() signal which will then be + * handled by the SettingsObject object and cause the setting to change. + * \param value The new value. + */ + virtual void reset(); protected: QString m_id; QVariant m_defVal; |