Navigator pane: Switch to dockwidget when working in fullscreen mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25197 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-09 07:09:29 +00:00
parent fbcca09cf9
commit cd26f796d3

View File

@ -48,6 +48,21 @@ GuiToc::~GuiToc()
void GuiToc::updateView()
{
#ifndef Q_WS_MACX
widget_->updateView();
return;
#endif
// Special code for Mac drawer.
if (windowFlags() & Qt::Drawer && lyxview().isFullScreen()) {
setWindowFlags(Qt::Widget);
setFeatures(DockWidgetClosable);
show();
} else if (windowFlags() & Qt::Widget && !lyxview().isFullScreen()) {
setWindowFlags(Qt::Drawer);
setFeatures(NoDockWidgetFeatures);
show();
}
widget_->updateView();
}