first few changes to fix the settings xml handling but this needs
>=qt5.0 and the porting is not yet done
ported to qt5 and fixed #1