On Apr 29, 2007, at 5:28 PM, Abdelrazak Younes wrote:

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.

With Qt-4.3, the title bar is not there in the drawer (with this patch or with Jean-Marc's original patch). (Will 4.3 be out reasonably soon? Can we rely on it for the 1.5.0 release?)

Anyway, this patch is looking promising. I can confirm that the toolbar button does toggle the TOC drawer, but the menu is grayed out. (Also, my custom key binding doesn't toggle it either.)

Bennett

Reply via email to