Move where icons in menus attribute is set

Without this, icons are not visible on macOS
This commit is contained in:
Benjamin Nauck
2024-12-18 16:16:15 +01:00
committed by Chris Hennes
parent 5302033c76
commit 1e91ad56bc
2 changed files with 4 additions and 2 deletions

View File

@@ -2283,6 +2283,10 @@ void Application::runApplication()
MainWindow mw;
mw.setProperty("QuitOnClosed", true);
// https://forum.freecad.org/viewtopic.php?f=3&t=15540
// Needs to be set after app is created to override platform defaults (qt commit a2aa1f81a81)
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);
#ifdef FC_DEBUG // redirect Coin messages to FreeCAD
SoDebugError::setHandlerCallback(messageHandlerCoin, 0);
#endif

View File

@@ -107,8 +107,6 @@ 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()