mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* GuiMenuBar:
- Get rid of unused menuBar() method. - make sure mac specific code always compile. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22302 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3ffd3f51a1
commit
4959040015
@ -45,8 +45,10 @@ void GuiMenubar::init()
|
||||
// Clear all menubar contents before filling it.
|
||||
owner_->menuBar()->clear();
|
||||
|
||||
#ifdef Q_WS_MACX
|
||||
// setup special mac specific menu item
|
||||
macxMenuBarInit();
|
||||
#endif
|
||||
|
||||
LYXERR(Debug::GUI, "populating menu bar" << to_utf8(menubackend_.getMenubar().name()));
|
||||
|
||||
@ -137,22 +139,9 @@ void GuiMenubar::openByName(QString const & name)
|
||||
that this menubar will be used also when one of LyX' dialogs has
|
||||
focus. (JMarc)
|
||||
*/
|
||||
QMenuBar * GuiMenubar::menuBar() const
|
||||
{
|
||||
#ifdef Q_WS_MACX
|
||||
return mac_menubar_;
|
||||
#else
|
||||
return owner_->menuBar();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef Q_WS_MACX
|
||||
extern void qt_mac_set_menubar_merge(bool b);
|
||||
#endif
|
||||
|
||||
void GuiMenubar::macxMenuBarInit()
|
||||
{
|
||||
#ifdef Q_WS_MACX
|
||||
mac_menubar_ = new QMenuBar;
|
||||
|
||||
/* Since Qt 4.2, the qt/mac menu code has special code for
|
||||
@ -215,7 +204,6 @@ void GuiMenubar::macxMenuBarInit()
|
||||
qMenu->addAction(action);
|
||||
|
||||
}
|
||||
#endif // Q_WS_MACX
|
||||
}
|
||||
|
||||
} // namespace frontend
|
||||
|
@ -48,9 +48,6 @@ public:
|
||||
/// return the menu controller
|
||||
MenuBackend const & backend() { return menubackend_; }
|
||||
|
||||
/// The QMenuBar used by LyX
|
||||
QMenuBar * menuBar() const;
|
||||
|
||||
/// update the state of the menuitems - not needed
|
||||
void updateView();
|
||||
|
||||
|
@ -16,14 +16,13 @@
|
||||
#include "Action.h"
|
||||
#include "GuiPopupMenu.h"
|
||||
#include "qt_helpers.h"
|
||||
|
||||
#include "LyXFunc.h"
|
||||
#include "MenuBackend.h"
|
||||
|
||||
#include "support/lstrings.h"
|
||||
#include "support/debug.h"
|
||||
|
||||
#include <QMenuBar>
|
||||
|
||||
namespace lyx {
|
||||
namespace frontend {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user