implements dump method for config
qt gui saves/restores state