Mercurial > hg > octave-nkf
changeset 18639:bfb735b70978 stable
Force non-native menu bar for the editor on mac (bug #41823)
author | pantxo <pantxo.diribarne@gmail.com> |
---|---|
date | Tue, 11 Mar 2014 00:15:20 +0100 |
parents | 548643c76a88 |
children | 564a74b2d509 |
files | libgui/src/m-editor/file-editor.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -889,8 +889,10 @@ // FIXME: what was the intended purpose of this unused variable? // QStyle *editor_style = QApplication::style (); - _menu_bar = new QMenuBar (editor_widget); +#if defined (Q_OS_MAC) + _menu_bar->setNativeMenuBar (false); +#endif _tool_bar = new QToolBar (editor_widget); _tool_bar->setMovable (true); _tab_widget = new QTabWidget (editor_widget);