X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fsettingspage.h;h=2c5ffb4e39f178d3696874515cf1f3258be7fb9d;hp=a9f32b8f6efda1ff71ce8a097ced50dc255eb1ac;hb=4ec0f5fc03c28c7bc810d88ecfdf6b07efc9afcd;hpb=6579cd49c867ce3fb6c99127851a881ea82d1b1b diff --git a/src/uisupport/settingspage.h b/src/uisupport/settingspage.h index a9f32b8f..2c5ffb4e 100644 --- a/src/uisupport/settingspage.h +++ b/src/uisupport/settingspage.h @@ -23,6 +23,8 @@ #include +class QCheckBox; + //! A SettingsPage is a page in the settings dialog. /** The SettingsDlg provides suitable standard buttons, such as Ok, Apply, Cancel, Restore Defaults and Reset. * Some pages might also be used in standalone dialogs or other containers. A SettingsPage provides suitable @@ -57,7 +59,11 @@ public: * \return false, if the SettingsPage cannot be saved in its current state. */ inline virtual bool aboutToSave() { return true; } - + + //! sets checked state depending on \checked and stores the value for later comparision + static void load(QCheckBox *box, bool checked); + static bool hasChanged(QCheckBox *box); + public slots: //! Save settings to permanent storage. virtual void save() = 0; @@ -86,4 +92,6 @@ private: bool _changed; }; + + #endif