Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2f9e385f
Commit
2f9e385f
authored
Mar 05, 2014
by
Don Gagne
Browse files
Don't use native menu bar on Linux
Fixes Issue #542
parent
90894ad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
2f9e385f
...
...
@@ -187,6 +187,11 @@ void MainWindow::init()
ui
.
setupUi
(
this
);
hide
();
menuActionHelper
->
setMenu
(
ui
.
menuTools
);
// Qt 4 on Ubuntu does place the native menubar correctly so on Linux we revert back to in-window menu bar.
#ifdef Q_OS_LINUX
menuBar
()
->
setNativeMenuBar
(
false
);
#endif
// We only need this menu if we have more than one system
// ui.menuConnected_Systems->setEnabled(false);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment