Allow custom saving/loading of SettingsPage autowidgets
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 21 Jul 2009 22:25:01 +0000 (00:25 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 21 Jul 2009 22:25:01 +0000 (00:25 +0200)
commit1545449bce16fa939869d73ed5d4bbd8416d4512
tree5a455dfbb4ba92b3f0ff71077b12528e80fa281c
parent84b0f5fb3219bcc777f74f609c88011c86873f6c
Allow custom saving/loading of SettingsPage autowidgets

SettingsPages can automatically handle child widgets' contents (e.g. track changes,
load and save) if those have the properties "settingsKey" and "defaultValue" set. However,
sometimes widgets need to be saved to something else than a Settings object (e.g. a core config object).

You can now leave the settingsKey property empty for your autowidgets and reimplement
{save|load}AutoWidgetValue() in your derived SettingsPage to handle custom saving and loading.
src/uisupport/settingspage.cpp
src/uisupport/settingspage.h