Move QT_X11_NO_NATIVE_MENUBAR to code (#4818)

Set Qt::AA_DontUseNativeMenuBar
Remove QT_X11_NO_NATIVE_MENUBAR from desktop launcher
This commit is contained in:
Javier Serrano Polo
2019-02-11 20:03:50 +01:00
committed by Tres Finocchiaro
parent bbedfa9ec5
commit e94d1c91e9
2 changed files with 5 additions and 1 deletions

View File

@@ -252,6 +252,10 @@ int main( int argc, char * * argv )
return EXIT_FAILURE;
}
#endif
#ifdef LMMS_BUILD_LINUX
// don't let OS steal the menu bar. FIXME: only effective on Qt4
QCoreApplication::setAttribute( Qt::AA_DontUseNativeMenuBar );
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif