[widgets] restore state/geometry placed after all components are created

refactored save/restore state/geometry with functions
renamed functions to save/load settings
3 jobs for fix_settings_placement in 12 minutes and 45 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Build
passed #158297
docker
build_linux_36

00:06:27

passed #158067
macosx
build_macosx_36

00:06:18

failed #158066
docker
build_linux_36

00:00:14