mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
* frontends/Toolbars.C:
revert first patch http://www.lyx.org/trac/changeset/15597 * frontends/qt4/GuiView.C: don't 'break' the toolbar because it doesn't work if the toolbar will be hidden git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15636 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4292f4e9e9
commit
b15b581f57
@ -124,6 +124,11 @@ void Toolbars::add(ToolbarBackend::Toolbar const & tbb)
|
||||
ToolbarPtr tb_ptr = owner_.makeToolbar(tbb);
|
||||
toolbars_[tbb.name] = tb_ptr;
|
||||
|
||||
if (tbb.flags & ToolbarBackend::ON)
|
||||
tb_ptr->show(false);
|
||||
else
|
||||
tb_ptr->hide(false);
|
||||
|
||||
if (tb_ptr->layout())
|
||||
layout_ = tb_ptr->layout();
|
||||
}
|
||||
|
@ -323,9 +323,13 @@ Toolbars::ToolbarPtr GuiView::makeToolbar(ToolbarBackend::Toolbar const & tbb)
|
||||
}
|
||||
if (tbb.flags & ToolbarBackend::BOTTOM) {
|
||||
addToolBar(Qt::BottomToolBarArea, Tb);
|
||||
/*
|
||||
// Qt bug. Doesn't work because the
|
||||
// toolbar will evtl. be hidden.
|
||||
if (lastTb)
|
||||
insertToolBarBreak(lastTb);
|
||||
lastTb = Tb;
|
||||
*/
|
||||
}
|
||||
if (tbb.flags & ToolbarBackend::LEFT) {
|
||||
addToolBar(Qt::LeftToolBarArea, Tb);
|
||||
|
Loading…
Reference in New Issue
Block a user