Gui: set Qt attributes in setupApplication()

This commit is contained in:
Ladislav Michl
2024-09-12 17:02:33 +02:00
parent d6c9f9c8fe
commit bf1a276977
2 changed files with 2 additions and 3 deletions

View File

@@ -2250,11 +2250,8 @@ void Application::runApplication()
// A new QApplication
Base::Console().Log("Init: Creating Gui::Application and QApplication\n");
// if application not yet created by the splasher
int argc = App::Application::GetARGC();
GUISingleApplication mainApp(argc, App::Application::GetARGV());
// https://forum.freecad.org/viewtopic.php?f=3&t=15540
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
// Make sure that we use '.' as decimal point. See also
// http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846

View File

@@ -107,6 +107,8 @@ void StartupProcess::setupApplication()
// compression for tablet events here to solve that.
QCoreApplication::setAttribute(Qt::AA_CompressTabletEvents);
#endif
// https://forum.freecad.org/viewtopic.php?f=3&t=15540
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
}
void StartupProcess::execute()