mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
special menu hack for qt/mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
41b2fa5162
commit
f3a0435e42
@ -1,3 +1,8 @@
|
||||
2003-07-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* Menubar_pimpl.C (Pimpl): when creating a top-level menu, make
|
||||
sure that it is initialized to some reasonable value, so that the
|
||||
(ugly) Qt/Mac code can do its magic (conditionally on Q_WS_MAC).
|
||||
|
||||
2003-07-11 André Pönitz <poenitz@lyx.org>
|
||||
|
||||
|
@ -48,6 +48,17 @@ Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
|
||||
pair<int, QLPopupMenu *> menu =
|
||||
createMenu(owner_->menuBar(), &(*m), this, true);
|
||||
name_map_[m->submenuname()] = menu.second;
|
||||
#ifdef Q_WS_MAC
|
||||
/* The qt/mac menu code has a very silly hack that
|
||||
moves some menu entries that it recognizes by name
|
||||
(ex: "Preferences...") to the "LyX" menu. This
|
||||
feature can only work if the menu entries are
|
||||
always available. Since we build menus on demand,
|
||||
we have to have a reasonable default value before
|
||||
the menus have been explicitely opened. (JMarc)
|
||||
*/
|
||||
menu.second->showing();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user