Improve qsettings & toc in sidebar

• qsettings is class property—less code dublication;

TOC in sidebar:
• filter headers
• remember/restore visibility
• sensible width by default—30% of window
• disable list and filter when no headers