mapsettings - templatepattern into QUndo framework