Stefan Schimanski wrote:
Hi!
Not sure what the last state of discussion was to use a drawer for the
TOC on Mac. I like it and here I got the impression that others do too:
http://marc.info/?l=lyx-devel&m=117392182901685&w=2
So here is another patch which fixes a few things (mentioned here
http://bugzilla.lyx.org/show_bug.cgi?id=3500):
- The drawer can be closed, but not moved anymore (which made it impossible
to transform it back into a drawer)
- The toolbar button toggles the drawer.
I haven't found out how to fix the menu item as well. At the moment it
greys out when the drawer is visible. It should switch between "Show
TOC" and "Hide TOC" or it should be a toggle menu item. Would be happy
about some hint where to look.
What happens on other platform when passing the Qt::Drawer flag? Now I
#ifdef'ed it out.
Qt's doc say that the Drawer property will be ignored. So the #ifdef are
not necessary.
But IIRC the result of the discussion cited above was that, in order to
get rid of the title bar we need a new container similar to the DockView
one but reserved for Drawer type widget: DrawerView.
Abdel.