Introduce automagic child widget handling in SettingsPage
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Jan 2009 01:32:24 +0000 (02:32 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Jan 2009 01:42:30 +0000 (02:42 +0100)
commit61e73ddfdd22418890102c44166483ddb28e1c93
tree79737adf8df0effab7bd1efc5af6d9803fa5397b
parent26bdd4f29a13a635cfb73000e38a17f01c5982ce
Introduce automagic child widget handling in SettingsPage

This tackles the most annoying thing about settingspages: the need for tracking
the changes of every child widget, comparing it with the stored value, and updating
the changedState for the whole page. Now standard widgets only need to have two
dynamic properties set in Qt Designer and all that is handled automatically for them,
including load/save/defaults. See settingspage.h for more information about how to do that.
src/uisupport/settingspage.cpp
src/uisupport/settingspage.h