> First, there are two different types of settings of toolbars: the > location of the toolbars, and the visibility of the toolbars. The > former is managed by Qt in QMainWindow::saveState()/restoreState(). > The latter is done by LyX in > GuiToolbar::saveSession()/restoreSession(). The reason for this > distinction is that Qt has no knowledge about the three-way visibility > setting we have in LyX. >
What I forgot to say is: Why don't we implement saveState() and restoreState() in GuiToolbar which overrides QToolbar::saveState() and restoreState(). Then restoring the visibility of the toolbars is done by QMainWindow::restoreState. (At least, that is what I would think). Vincent