Improve SideBar class implementation using QActionGroup.
Minor cleanups.