TreeView: add function to explicitely set config group nam
This is required, since there are situations where we must not call restoreColumnLayout,
yet want to set a config group name anyway, like when creating a new tab from an existing layout
in kleopatra.
(cherry picked from commit c6ffe0520f3e216eaf14f70c9cab2593fdf8a76b)