mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
fbcca09cf9
commit
cd26f796d3
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user