Bennett Helm wrote:
On Mon, Jun 9, 2008 at 3:14 AM, Abdelrazak Younes <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Abdelrazak Younes wrote:

        Bennett Helm wrote:

            My preferences here would be as follows (rank ordered from
            most to least
            preferred):

            a) fix the drawer implementation to work in full-screen
            view (with windows
            visible)

            b) switch to a dockable/floating widget implementation,
            provided (1)-(3) can
            be fixed

            c) stick with drawers, not visible in full-screen view,
            but fixing the bug I
            mentioned at the beginning.

            Any thoughts?

        d) switch to a dockable widget when working in full-screen
        mode and switching back to drawer when leaving full-screen mode.


Even better.
        I've done that, please test and report. You can also try to
        play with the window flags and feature in order to fine tune
        the behaviour.


It mostly works. The only problem is that on switching back from full-screen to normal windowed mode, the Outline is docked rather than a drawer.

Could you please 'svn update', test, apply this patch and test again?

Thanks in advance,
Abdel.


Index: GuiToc.cpp
===================================================================
--- GuiToc.cpp  (revision 25206)
+++ GuiToc.cpp  (working copy)
@@ -59,10 +59,6 @@
                setWindowFlags(Qt::Widget);
                setFeatures(DockWidgetClosable);
                show();
-       } else if (windowFlags() & Qt::Widget && !lyxview().isFullScreen()) {
-               setWindowFlags(Qt::Drawer);
-               setFeatures(NoDockWidgetFeatures);
-               show();
        }
        widget_->updateView();
 }

Reply via email to