]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.cpp
Use QFontMetrics information for underlines (and friends) width and position
[lyx.git] / src / frontends / qt4 / GuiToc.cpp
index e7840b102e9139df9961c2cc59abf09d8a22a817..af9f6f957f403eaf85f29bad73f0a8dd5d0c789c 100644 (file)
@@ -37,6 +37,7 @@ GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
 {
        widget_ = new TocWidget(parent, this);
        setWidget(widget_);
+       setFocusProxy(widget_);
 }
 
 
@@ -97,7 +98,7 @@ bool GuiToc::getStatus(Cursor & cur, FuncRequest const & cmd,
 Dialog * createGuiToc(GuiView & lv)
 {
        GuiToc * toc;
-#ifdef Q_WS_MACX
+#ifdef Q_OS_MAC
        // On Mac show at the right and floating
        toc = new GuiToc(lv, Qt::RightDockWidgetArea);
        toc->setFloating(true);